Skip to content

Commit 1a93509

Browse files
authored
Merge pull request #855 from diffblue/ebmc-release-cadical
ebmc release flow: add Cadical
2 parents dcdd4a1 + 15fb88b commit 1a93509

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.github/workflows/ebmc-release.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
restore-keys: ${{ runner.os }}-22.04-make-gcc
6868
- name: ccache path
6969
run: ccache -p | grep cache_dir
70-
- name: Get minisat
71-
run: make -C lib/cbmc/src minisat2-download
70+
- name: Get cadical and minisat
71+
run: make -C lib/cbmc/src cadical-download minisat2-download
7272
- name: Build with make
7373
run: |
7474
# -static-libstdc++ is insufficient, owing to varying GLIBC versions
75-
make -C src -j4 CXX="ccache g++" LINKFLAGS="-static"
75+
make -C src -j4 CXX="ccache g++" LINKFLAGS="-static" MINISAT2=../../minisat-2.2.1 CADICAL=../../cadical
7676
- name: Run the ebmc tests with SAT
7777
run: make -C regression/ebmc test
7878
- name: Run the verilog tests
@@ -148,12 +148,12 @@ jobs:
148148
run: ccache -z --max-size=500M
149149
- name: ccache path
150150
run: ccache -p | grep cache_dir
151-
- name: Get minisat
152-
run: make -C lib/cbmc/src minisat2-download
151+
- name: Get cadical and minisat
152+
run: make -C lib/cbmc/src cadical-download minisat2-download
153153
- name: Build with make
154154
run: |
155155
# -static-libstdc++ suffices -- tested on CentOS, Fedora, Amazon Linux
156-
make CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs" LINKFLAGS="-static-libstdc++" -C src -j4
156+
make CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs" LINKFLAGS="-static-libstdc++" -C src -j4 MINISAT2=../../minisat-2.2.1 CADICAL=../../cadical
157157
- name: Print ccache stats
158158
run: ccache -s
159159
- name: Run the ebmc tests with SAT

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

+11-13
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
- name: Zero ccache stats and limit in size
4040
run: ccache -z --max-size=500M
4141
- name: Get cadical and minisat
42-
run: |
43-
make -C lib/cbmc/src cadical-download minisat2-download
42+
run: make -C lib/cbmc/src cadical-download minisat2-download
4443
- name: Build with make
4544
run: make -C src -j4 CXX="ccache g++" MINISAT2=../../minisat-2.2.1 CADICAL=../../cadical
4645
- name: Run unit tests
@@ -98,11 +97,10 @@ jobs:
9897
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
9998
- name: Zero ccache stats and limit in size
10099
run: ccache -z --max-size=500M
101-
- name: Get minisat
102-
run: |
103-
make -C lib/cbmc/src minisat2-download
100+
- name: Get cadical and minisat
101+
run: make -C lib/cbmc/src cadical-download minisat2-download
104102
- name: Build with make
105-
run: make CXX="ccache clang++" -C src -j4
103+
run: make CXX="ccache clang++" -C src -j4 MINISAT2=../../minisat-2.2.1 CADICAL=../../cadical
106104
- name: Run unit tests
107105
run: make -C unit -j4 CXX="ccache clang++"
108106
- name: Run the ebmc tests with SAT
@@ -203,10 +201,10 @@ jobs:
203201
run: ccache -z --max-size=500M
204202
- name: ccache path
205203
run: ccache -p | grep cache_dir
206-
- name: Get minisat
207-
run: make -C lib/cbmc/src minisat2-download
204+
- name: Get cadical and minisat
205+
run: make -C lib/cbmc/src cadical-download minisat2-download
208206
- name: Build with make
209-
run: make CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs" -C src -j4
207+
run: make CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs" -C src -j4 MINISAT2=../../minisat-2.2.1 CADICAL=../../cadical
210208
- name: Run unit tests
211209
run: make -C unit -j4 CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs"
212210
- name: Run the ebmc tests with SAT
@@ -248,10 +246,10 @@ jobs:
248246
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
249247
- name: Zero ccache stats and limit in size
250248
run: ccache -z --max-size=500M
251-
- name: Get minisat
252-
run: make -C lib/cbmc/src minisat2-download
249+
- name: Get cadical and minisat
250+
run: make -C lib/cbmc/src cadical-download minisat2-download
253251
- name: Build with make
254-
run: make YACC="/opt/homebrew/opt/bison/bin/bison" CXX="ccache clang++" -C src -j3
252+
run: make YACC="/opt/homebrew/opt/bison/bin/bison" CXX="ccache clang++" -C src -j3 MINISAT2=../../minisat-2.2.1 CADICAL=../../cadical
255253
- name: Run unit tests
256254
run: make -C unit -j3 CXX="ccache g++"
257255
- name: Run the ebmc tests with SAT
@@ -397,7 +395,7 @@ jobs:
397395
run: |
398396
clcache -z
399397
clcache -M 2147483648
400-
- name: Download minisat with make
398+
- name: Download minisat
401399
run: make -C lib/cbmc/src minisat2-download
402400
- name: Build EBMC with make
403401
env:

0 commit comments

Comments
 (0)