Skip to content

Commit 03a22ea

Browse files
committed
Added Clang build for the CI
1 parent 9d5a599 commit 03a22ea

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,28 @@ jobs:
8787
echo "***** MEMCHECK $test *****"; \
8888
valgrind ${{env.VALGRIND_ARGS}} .build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --verbose --jobs 1 --nofork --debug $test; \
8989
done
90+
opensuse_tumbleweed_clang:
91+
runs-on: ubuntu-latest
92+
container:
93+
image: opensuse/tumbleweed:latest
94+
steps:
95+
- name: Install dependencies
96+
run: zypper --non-interactive --no-gpg-checks in tar gzip git make valgrind gcc gcc-c++ libstdc++-devel clang
97+
- uses: actions/checkout@v3
98+
- name: Configure project
99+
run: make config TEST=1 CC=clang CXX=clang++
100+
- name: Fetch project dependencies
101+
run: make fetch
102+
- name: Build project
103+
run: make VERBOSE=1
104+
- name: Run unit tests
105+
run: .build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --verbose --jobs 1
106+
- name: Run unit tests with memcheck
107+
run: |
108+
for test in $(.build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --list --suppress); do \
109+
echo "***** MEMCHECK $test *****"; \
110+
valgrind ${{env.VALGRIND_ARGS}} .build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --verbose --jobs 1 --nofork --debug $test; \
111+
done
90112
debian_stable:
91113
runs-on: ubuntu-latest
92114
container:

0 commit comments

Comments
 (0)