Skip to content

Commit e1354e9

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 5c7a529 commit e1354e9

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
@@ -40,6 +40,42 @@ jobs:
4040
env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
4141
make -C jbmc/regression test
4242
43+
check-ubuntu-20_04-make-clang:
44+
runs-on: ubuntu-20.04
45+
steps:
46+
- uses: actions/checkout@v2
47+
with:
48+
submodules: true
49+
- name: Fetch dependencies
50+
env:
51+
# This is needed in addition to -yq to prevent apt-get from asking for
52+
# user input
53+
DEBIAN_FRONTEND: noninteractive
54+
TESTPL_JOBS: 4
55+
run: |
56+
sudo apt-get install -yq gdb maven jq flex bison libxml2-utils cpanminus
57+
make -C src minisat2-download
58+
cpanm Thread::Pool::Simple
59+
- name: Build with make
60+
run: |
61+
make -C src CXX='/usr/bin/clang++' -j2
62+
make -C unit CXX='/usr/bin/clang++' -j2
63+
make -C jbmc/src CXX='/usr/bin/clang++' -j2
64+
make -C jbmc/unit CXX='/usr/bin/clang++' -j2
65+
- name: Run unit tests
66+
run: |
67+
make -C unit CXX='/usr/bin/clang++' test
68+
make -C jbmc/unit CXX='/usr/bin/clang++' test
69+
echo "Running expected failure tests"
70+
make TAGS="[!shouldfail]" -C unit CXX='/usr/bin/clang++' test
71+
make TAGS="[!shouldfail]" -C jbmc/unit CXX='/usr/bin/clang++' test
72+
- name: Run regression tests
73+
run: |
74+
make -C regression test
75+
make -C regression/cbmc test-paths-lifo
76+
env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
77+
make -C jbmc/regression test
78+
4379
check-ubuntu-20_04-cmake-gcc:
4480
runs-on: ubuntu-20.04
4581
steps:

0 commit comments

Comments
 (0)