Skip to content

Commit 68f6ac6

Browse files
committed
ci: install newer Z3 on Linux
1 parent 256c244 commit 68f6ac6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/scripts/install-z3.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
set -eux -o pipefail
33

44
if [ "$HOST_OS" = "Linux" ]; then
5-
sudo apt-get update
6-
sudo apt-get install -y z3
5+
if [ $(uname -m) = "aarch64" ]; then
6+
curl -fsSL -o z3.zip https://github.com/Z3Prover/z3/releases/download/z3-4.15.2/z3-4.15.2-arm64-glibc-2.34.zip
7+
elif [ $(uname -m) = "x86_64" ]; then
8+
curl -fsSL -o z3.zip https://github.com/Z3Prover/z3/releases/download/z3-4.15.2/z3-4.15.2-x64-glibc-2.39.zip
9+
fi
10+
unzip z3.zip
11+
cp -a z3-*/bin/z3 "$HOME/.local/bin/"
12+
rm -rf z3-*/ z3.zip
713
fi
814
if [ "$HOST_OS" = "Windows" ]; then
915
choco install z3

0 commit comments

Comments
 (0)