mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
install z3 on macos
This commit is contained in:
parent
c50925240d
commit
2e094be176
2 changed files with 7 additions and 17 deletions
1
.github/workflows/test_nightly_many_os.yml
vendored
1
.github/workflows/test_nightly_many_os.yml
vendored
|
@ -1,4 +1,5 @@
|
|||
on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
name: Test latest nightly releases for macOS and Linux x86_64
|
||||
|
|
|
@ -17,6 +17,10 @@ if [ -n "$(ls | grep -v "roc_nightly.*tar\.gz" | grep -v "^ci$")" ]; then
|
|||
done
|
||||
fi
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
brew install z3 # used by llvm
|
||||
fi
|
||||
|
||||
# decompress the tar
|
||||
ls | grep "roc_nightly.*tar\.gz" | xargs tar -xzvf
|
||||
|
||||
|
@ -34,23 +38,8 @@ cd roc_nightly
|
|||
# test rust platform
|
||||
./roc examples/platform-switching/rocLovesRust.roc
|
||||
|
||||
run_zig_test=true
|
||||
# Detect macOS version
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
macos_version=$(sw_vers -productVersion)
|
||||
major_version=$(echo $macos_version | cut -d. -f1)
|
||||
|
||||
# If macOS 13, then set the flag to skip
|
||||
if [[ $major_version -eq 13 ]]; then
|
||||
echo "Skipping zig test on macOS 13 due to https://github.com/roc-lang/roc/issues/5590..."
|
||||
run_zig_test=false
|
||||
fi
|
||||
fi
|
||||
|
||||
if $run_zig_test ; then
|
||||
# test zig platform
|
||||
./roc examples/platform-switching/rocLovesZig.roc
|
||||
fi
|
||||
# test zig platform
|
||||
./roc examples/platform-switching/rocLovesZig.roc
|
||||
|
||||
# test C platform
|
||||
./roc examples/platform-switching/rocLovesC.roc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue