Skip to content

Commit c4ae795

Browse files
committed
ci: Run generic-sandbox tests in CI on aarch64 MacOS using Rosetta 2
Signed-off-by: Aman <[email protected]>
1 parent 60a47ac commit c4ae795

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

ci/jobs/build-and-test-linux.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 POLKAVM_BACKEND=compiler POLK
2424
# echo ">> cargo run (examples, compiler, generic, x86_64-unknown-linux-gnu)"
2525
# POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 POLKAVM_BACKEND=compiler POLKAVM_SANDBOX=generic cargo run --target=x86_64-unknown-linux-gnu -p hello-world-host
2626

27+
echo ">> cargo test (generic-sandbox)"
28+
cargo test --features generic-sandbox -p polkavm -- \
29+
tests::compiler_generic_ \
30+
--skip tests::compiler_generic_memset_basic \
31+
--skip tests::compiler_generic_memset_with_dynamic_paging
32+
2733
echo ">> cargo check (polkatool, i686-unknown-linux-musl)"
2834
cargo check --target=i686-unknown-linux-musl -p polkatool
2935

ci/jobs/build-and-test-macos.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 POLKAVM_BACKEND=interpreter c
1414

1515
echo ">> cargo run (examples, interpreter, aarch64-apple-darwin)"
1616
POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 POLKAVM_BACKEND=interpreter cargo run --target=aarch64-apple-darwin -p hello-world-host
17+
18+
echo ">> cargo test (generic-sandbox)"
19+
cargo test --features generic-sandbox -p polkavm -- \
20+
tests::compiler_generic_ \
21+
--skip tests::compiler_generic_memset_basic \
22+
--skip tests::compiler_generic_memset_with_dynamic_paging

ci/jobs/build-and-test.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ do
3030
cd tools/benchtool && cargo test --profile $PROFILE && cd ../..
3131
done
3232

33-
echo ">> cargo test (generic-sandbox)"
34-
cargo test --features generic-sandbox -p polkavm -- \
35-
tests::compiler_generic_ \
36-
--skip tests::compiler_generic_memset_basic \
37-
--skip tests::compiler_generic_memset_with_dynamic_paging
38-
3933
echo ">> cargo run (examples)"
4034
POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 cargo run -p hello-world-host
4135

0 commit comments

Comments
 (0)