Skip to content

Commit 3f27e15

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 3f27e15

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,45 @@ 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+
env:
65+
CC: "/usr/bin/clang"
66+
CXX: "/usr/bin/clang++"
67+
steps:
68+
- uses: actions/checkout@v2
69+
with:
70+
submodules: recursive
71+
- name: Fetch dependencies
72+
env:
73+
# This is needed in addition to -yq to prevent apt-get from asking for
74+
# user input
75+
DEBIAN_FRONTEND: noninteractive
76+
run: |
77+
sudo apt-get update
78+
sudo apt-get install --no-install-recommends -yq clang-10 clang++-10 gdb maven jq flex bison libxml2-utils cpanminus
79+
make -C src minisat2-download
80+
cpanm Thread::Pool::Simple
81+
- name: Build with make
82+
run: |
83+
make -C src -j2
84+
make -C unit -j2
85+
make -C jbmc/src -j2
86+
make -C jbmc/unit -j2
87+
- name: Run unit tests
88+
run: |
89+
make -C unit test
90+
make -C jbmc/unit test
91+
- name: Running expected failure unit tests
92+
run: |
93+
make TAGS="[!shouldfail]" -C unit test
94+
make TAGS="[!shouldfail]" -C jbmc/unit test
95+
- name: Run regression tests
96+
run: |
97+
make -C regression test-parallel JOBS=2
98+
make -C regression/cbmc test-paths-lifo
99+
env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
100+
make -C jbmc/regression test-parallel JOBS=2
62101
check-ubuntu-20_04-cmake-gcc:
63102
runs-on: ubuntu-20.04
64103
steps:

0 commit comments

Comments
 (0)