Skip to content

Commit f1f85ff

Browse files
authored
Merge pull request #7099 from NlightNFotis/fix_z3_version_ubuntu_18.04
Install a newer version of z3 in Ubuntu 18.04 release package build job
2 parents 67d8c9c + c6fee59 commit f1f85ff

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release-packages.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,22 @@ jobs:
9090
- name: Fetch dependencies
9191
run: |
9292
sudo apt-get update
93-
sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache z3
93+
sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
9494
# remove libgcc-s1, which isn't normally available in Ubuntu 18.04
9595
target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
9696
# libgcc1 uses an epoch, thus the extra 1:
9797
sudo apt-get install -y --allow-downgrades --reinstall gcc g++ libgcc-s1- libstdc++6=$target liblsan0=$target libtsan0=$target libcc1-0=$target libgcc1=1:$target gdb=8.1.1-0ubuntu1
98-
- name: Confirm z3 solver is available and log the version installed
99-
run: z3 --version
98+
- name: Download z3 4.11.0 from the python wheel package, extract it and make sure it can be deployed
99+
run: |
100+
sudo apt-get install --no-install-recommends -y unzip
101+
# download the z3 python wheel package
102+
wget -O z3.4.11.0.whl https://github.com/Z3Prover/z3/releases/download/z3-4.11.0/z3_solver-4.11.0.0-py2.py3-none-manylinux1_x86_64.whl
103+
# unpack the bundle using python
104+
unzip z3.4.11.0.whl
105+
# make z3 executable and move it in /usr/local/bin
106+
chmod u+x ./z3_solver-4.11.0.0.data/data/bin/z3
107+
mv ./z3_solver-4.11.0.0.data/data/bin/z3 /usr/local/bin/
108+
z3 --version
100109
- name: Download cvc-5 from the releases page and make sure it can be deployed
101110
run: |
102111
wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux

0 commit comments

Comments
 (0)