This commit is contained in:
Mark Gregory
2026-11-04 15:16:11 +00:00
parent 110840cd38
commit 5bebd30041
13 changed files with 315 additions and 28 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
#!/bin/sh
#!/bin/bash
set -eu
cd "$(dirname "$0")/.."
BUILD_DIR="$(mktemp -d)"
source scripts/common.sh
BUILD_DIR="$(mktemp -d "$TARNAX_SCRATCH_ROOT/contracts.XXXXXX")"
trap 'rm -rf "$BUILD_DIR"' EXIT
xcrun swiftc -parse-as-library -module-cache-path "$BUILD_DIR/cache" Tarnax/Core.swift Tests/ContractTests.swift -o "$BUILD_DIR/ContractTests"
"$BUILD_DIR/ContractTests"