Skip to content

Commit 5ea7a5a

Browse files
committed
Log version of z3 installed in CI
For version confirmation. This supports easier debugging for both the github actions `.yaml` and for future test failures. As a bonus we get fast failing CI jobs if the dependency isn't installed properly, because it fails at this step rather than during testing. This z3 version check is done as a separate step because adding to `$env:GITHUB_PATH` doesn't take effect the path until the next step.
1 parent 4859375 commit 5ea7a5a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
run: |
1919
sudo apt-get update
2020
sudo apt-get install --no-install-recommends -yq gcc gdb g++ maven jq flex bison libxml2-utils ccache cmake z3
21+
- name: Check z3 version
22+
run: z3 --version
2123
- name: Prepare ccache
2224
uses: actions/cache@v2
2325
with:
@@ -78,6 +80,8 @@ jobs:
7880
sudo apt-get install --no-install-recommends -yq clang-10 clang++-10 gdb maven jq flex bison libxml2-utils cpanminus ccache z3
7981
make -C src minisat2-download
8082
cpanm Thread::Pool::Simple
83+
- name: Check z3 version
84+
run: z3 --version
8185
- name: Prepare ccache
8286
uses: actions/cache@v2
8387
with:
@@ -129,6 +133,8 @@ jobs:
129133
run: |
130134
sudo apt-get update
131135
sudo apt-get install --no-install-recommends -yq cmake ninja-build gcc g++ maven flex bison libxml2-utils dpkg-dev ccache doxygen z3
136+
- name: Check z3 version
137+
run: z3 --version
132138
- name: Prepare ccache
133139
uses: actions/cache@v2
134140
with:
@@ -172,6 +178,8 @@ jobs:
172178
submodules: recursive
173179
- name: Fetch dependencies
174180
run: brew install maven flex bison parallel ccache z3
181+
- name: Check z3 version
182+
run: z3 --version
175183
- name: Prepare ccache
176184
uses: actions/cache@v2
177185
with:
@@ -212,6 +220,8 @@ jobs:
212220
submodules: recursive
213221
- name: Fetch dependencies
214222
run: brew install cmake ninja maven flex bison ccache z3
223+
- name: Check z3 version
224+
run: z3 --version
215225
- name: Prepare ccache
216226
uses: actions/cache@v2
217227
with:
@@ -254,6 +264,8 @@ jobs:
254264
Invoke-WebRequest -Uri https://github.com/Z3Prover/z3/releases/download/z3-4.8.10/z3-4.8.10-x64-win.zip -OutFile .\z3.zip
255265
Expand-Archive -LiteralPath '.\z3.Zip' -DestinationPath C:\tools
256266
echo "c:\tools\z3-4.8.10-x64-win\bin;" >> $env:GITHUB_PATH
267+
- name: Check z3 version
268+
run: z3 --version
257269
- name: Setup Visual Studio environment
258270
uses: microsoft/[email protected]
259271
- name: Prepare ccache
@@ -298,6 +310,8 @@ jobs:
298310
Invoke-WebRequest -Uri https://github.com/Z3Prover/z3/releases/download/z3-4.8.10/z3-4.8.10-x64-win.zip -OutFile .\z3.zip
299311
Expand-Archive -LiteralPath '.\z3.Zip' -DestinationPath C:\tools
300312
echo "c:\tools\z3-4.8.10-x64-win\bin;" >> $env:GITHUB_PATH
313+
- name: Check z3 version
314+
run: z3 --version
301315
- name: Setup MSBuild
302316
uses: microsoft/[email protected]
303317
- name: Initialise Developer Command Line
@@ -439,6 +453,8 @@ jobs:
439453
target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
440454
# libgcc1 uses an epoch, thus the extra 1:
441455
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
456+
- name: Check z3 version
457+
run: z3 --version
442458
- name: Prepare ccache
443459
uses: actions/cache@v2
444460
with:
@@ -521,6 +537,8 @@ jobs:
521537
run: |
522538
sudo apt-get update
523539
sudo apt-get install --no-install-recommends -y g++ gcc binutils flex bison cmake maven jq libxml2-utils openjdk-11-jdk-headless lcov ccache z3
540+
- name: Check z3 version
541+
run: z3 --version
524542
- name: Prepare ccache
525543
uses: actions/cache@v2
526544
with:

0 commit comments

Comments
 (0)