Skip to content

Commit d60cf5d

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 b902e0b commit d60cf5d

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

0 commit comments

Comments
 (0)