Skip to content

Commit

Permalink
github actions: compile also using clang
Browse files Browse the repository at this point in the history
  • Loading branch information
LudovicRousseau committed Jun 7, 2024
1 parent 3a179d9 commit 5667302
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build_meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,26 @@ jobs:
shell: bash
run: |
export CFLAGS="-Wall -Wextra -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-enum -Wundef -Wuninitialized -Wunused -Wwrite-strings -Wmissing-noreturn -flto=auto -O2 -Wp,-D_FORTIFY_SOURCE=2"
rm -rf builddir
meson setup builddir --werror
cd builddir
meson dist
meson setup --reconfigure -Dserial=true
meson compile
- name: compile with clang
shell: bash
run: |
export CFLAGS="-Wall -Wextra -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-enum -Wundef -Wuninitialized -Wunused -Wwrite-strings -Wmissing-noreturn -flto=auto -O2 -Wp,-D_FORTIFY_SOURCE=2"
rm -rf builddir
CC=clang CC_LD=lld meson setup builddir --werror
cd builddir
meson dist
meson setup --reconfigure -Dserial=true
meson compile

0 comments on commit 5667302

Please sign in to comment.