Skip to content

Commit

Permalink
add Werror/Wall/Wextra
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Feb 10, 2024
1 parent fd5fe8b commit e2bebdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,59 @@ jobs:
- name: Ubuntu GCC
os: ubuntu-latest
compiler: gcc
cflags: -Werror -Wall -Wextra

# Test out of source builds
- name: Ubuntu GCC OSB
os: ubuntu-latest
compiler: gcc
cflags: -Werror -Wall -Wextra
build-dir: ../build
src-dir: ../zlib

- name: Ubuntu GCC -O3
os: ubuntu-latest
compiler: gcc
cflags: -O3
cflags: -O3 -Werror -Wall -Wextra

- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
cflags: -Werror -Wall -Wextra

- name: Ubuntu Clang Debug
os: ubuntu-latest
compiler: clang
cflags: -Werror -Wall -Wextra
build-config: Debug

- name: Windows MSVC Win32
os: windows-latest
compiler: cl
cflags: /WX
cmake-args: -A Win32

- name: Windows MSVC Win64
os: windows-latest
compiler: cl
cflags: /WX
cmake-args: -A x64

- name: Windows GCC
os: windows-latest
compiler: gcc
cflags: -Werror -Wall -Wextra
cmake-args: -G Ninja

- name: macOS Clang
os: macos-latest
compiler: clang
cflags: -Werror -Wall -Wextra

- name: macOS GCC
os: macos-latest
compiler: gcc-11
cflags: -Werror -Wall -Wextra

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }}
CFLAGS: ${{ matrix.cflags }} -Werror -Wall -Wextra
LDFLAGS: ${{ matrix.ldflags }}
CHOST: ${{ matrix.chost }}

Expand Down

0 comments on commit e2bebdd

Please sign in to comment.