Skip to content

Commit 41c8860

Browse files
committed
Test clang with and without optimisations
1 parent a678783 commit 41c8860

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/dev.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
# Tests with: clang AB/UB; link-size=3
4343
name: Clang
4444
runs-on: ubuntu-latest
45+
strategy:
46+
matrix:
47+
opt: ["-O0", "-O2"]
4548
steps:
4649
- name: Checkout
4750
uses: actions/checkout@v4
@@ -52,7 +55,7 @@ jobs:
5255
run: ./autogen.sh
5356

5457
- name: Configure
55-
run: ./configure CC='clang -fsanitize=undefined,address,integer -fno-sanitize-recover=undefined,integer -fno-sanitize=unsigned-integer-overflow,unsigned-shift-base,function' CPPFLAGS='-Wall -Wextra -Werror -Wno-error=unused-but-set-parameter -Wno-error=deprecated-declarations -Wno-error=incompatible-library-redeclaration -Wno-error=incompatible-pointer-types-discards-qualifiers' --enable-jit --enable-pcre2-16 --enable-pcre2-32 --enable-debug --with-link-size=3
58+
run: ./configure CC='clang' CFLAGS='${{ matrix.opt }} -fsanitize=undefined,address,integer -fno-sanitize-recover=undefined,integer -fno-sanitize=unsigned-integer-overflow,unsigned-shift-base,function' CPPFLAGS='-Wall -Wextra -Werror -Wno-error=unused-but-set-parameter -Wno-error=deprecated-declarations -Wno-error=incompatible-library-redeclaration -Wno-error=incompatible-pointer-types-discards-qualifiers' --enable-jit --enable-pcre2-16 --enable-pcre2-32 --enable-debug --with-link-size=3
5659

5760
- name: Build
5861
run: make -j3

0 commit comments

Comments
 (0)