Skip to content

Commit c628de7

Browse files
committed
Add a linux+clang+make github actions pull request check job.
This replaces a codebuild job that had not been ported yet, so that codebuild can be safely deactivated as a CI provider, having all the configurations ported so far.
1 parent 268f886 commit c628de7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,42 @@ jobs:
5959
env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
6060
make -C jbmc/regression test-parallel JOBS=2
6161
62+
check-ubuntu-20_04-make-clang:
63+
runs-on: ubuntu-20.04
64+
steps:
65+
- uses: actions/checkout@v2
66+
with:
67+
submodules: true
68+
- name: Fetch dependencies
69+
env:
70+
# This is needed in addition to -yq to prevent apt-get from asking for
71+
# user input
72+
DEBIAN_FRONTEND: noninteractive
73+
TESTPL_JOBS: 4
74+
run: |
75+
sudo apt-get install -yq gdb maven jq flex bison libxml2-utils cpanminus
76+
make -C src minisat2-download
77+
cpanm Thread::Pool::Simple
78+
- name: Build with make
79+
run: |
80+
make -C src CXX='/usr/bin/clang++' -j2
81+
make -C unit CXX='/usr/bin/clang++' -j2
82+
make -C jbmc/src CXX='/usr/bin/clang++' -j2
83+
make -C jbmc/unit CXX='/usr/bin/clang++' -j2
84+
- name: Run unit tests
85+
run: |
86+
make -C unit CXX='/usr/bin/clang++' test
87+
make -C jbmc/unit CXX='/usr/bin/clang++' test
88+
echo "Running expected failure tests"
89+
make TAGS="[!shouldfail]" -C unit CXX='/usr/bin/clang++' test
90+
make TAGS="[!shouldfail]" -C jbmc/unit CXX='/usr/bin/clang++' test
91+
- name: Run regression tests
92+
run: |
93+
make -C regression test
94+
make -C regression/cbmc test-paths-lifo
95+
env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
96+
make -C jbmc/regression test
97+
6298
check-ubuntu-20_04-cmake-gcc:
6399
runs-on: ubuntu-20.04
64100
steps:

0 commit comments

Comments
 (0)