Skip to content

Commit 4f070cd

Browse files
author
Enrico Steffinlongo
committed
Add newer z3 version on ubuntu 18.04 github action
1 parent 9391c7a commit 4f070cd

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,13 +698,22 @@ jobs:
698698
- name: Fetch dependencies
699699
run: |
700700
sudo apt-get update
701-
sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache z3
701+
sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
702702
# remove libgcc-s1, which isn't normally available in Ubuntu 18.04
703703
target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
704704
# libgcc1 uses an epoch, thus the extra 1:
705705
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
706-
- name: Confirm z3 solver is available and log the version installed
707-
run: z3 --version
706+
- name: Download z3 4.11.0 from the python wheel package, extract it and make sure it can be deployed
707+
run: |
708+
sudo apt-get install --no-install-recommends -y unzip
709+
# download the z3 python wheel package
710+
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
711+
# unpack the bundle using python
712+
unzip z3.4.11.0.whl
713+
# make z3 executable and move it in /usr/local/bin
714+
chmod u+x ./z3_solver-4.11.0.0.data/data/bin/z3
715+
mv ./z3_solver-4.11.0.0.data/data/bin/z3 /usr/local/bin/
716+
z3 --version
708717
- name: Download cvc-5 from the releases page and make sure it can be deployed
709718
run: |
710719
wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux

0 commit comments

Comments
 (0)