Skip to content

Commit

Permalink
install z3 on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-4 committed Oct 27, 2023
1 parent c509252 commit 2e094be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_nightly_many_os.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
on:
pull_request:
workflow_dispatch:

name: Test latest nightly releases for macOS and Linux x86_64
Expand Down
23 changes: 6 additions & 17 deletions ci/basic_nightly_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 2e094be

Please sign in to comment.