aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorpmqs <pmqs@cpan.org>2024-02-10 12:34:50 +0000
committerMark Adler <madler@alumni.caltech.edu>2024-02-10 09:27:55 -0800
commitd9243a0f066fd0ad6e7597be620ab8d8bfe5ae72 (patch)
tree01479a055c6cfd3cdfb57a41abf9ff957e29f9d7 /.github
parentfd5fe8b17e27ab92dcc70ed4974915b8dbe2a553 (diff)
downloadzlib-d9243a0f066fd0ad6e7597be620ab8d8bfe5ae72.tar.gz
zlib-d9243a0f066fd0ad6e7597be620ab8d8bfe5ae72.tar.bz2
zlib-d9243a0f066fd0ad6e7597be620ab8d8bfe5ae72.zip
Add warnings and error on warning to configure and cmake tests.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake.yml11
-rw-r--r--.github/workflows/configure.yml2
2 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 69bd538..e258b64 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -11,50 +11,59 @@ jobs:
11 - name: Ubuntu GCC 11 - name: Ubuntu GCC
12 os: ubuntu-latest 12 os: ubuntu-latest
13 compiler: gcc 13 compiler: gcc
14 cflags: -Werror -Wall -Wextra
14 15
15 # Test out of source builds 16 # Test out of source builds
16 - name: Ubuntu GCC OSB 17 - name: Ubuntu GCC OSB
17 os: ubuntu-latest 18 os: ubuntu-latest
18 compiler: gcc 19 compiler: gcc
20 cflags: -Werror -Wall -Wextra
19 build-dir: ../build 21 build-dir: ../build
20 src-dir: ../zlib 22 src-dir: ../zlib
21 23
22 - name: Ubuntu GCC -O3 24 - name: Ubuntu GCC -O3
23 os: ubuntu-latest 25 os: ubuntu-latest
24 compiler: gcc 26 compiler: gcc
25 cflags: -O3 27 cflags: -O3 -Werror -Wall -Wextra
26 28
27 - name: Ubuntu Clang 29 - name: Ubuntu Clang
28 os: ubuntu-latest 30 os: ubuntu-latest
29 compiler: clang 31 compiler: clang
32 cflags: -Werror -Wall -Wextra
30 33
31 - name: Ubuntu Clang Debug 34 - name: Ubuntu Clang Debug
32 os: ubuntu-latest 35 os: ubuntu-latest
33 compiler: clang 36 compiler: clang
37 cflags: -Werror -Wall -Wextra
34 build-config: Debug 38 build-config: Debug
35 39
36 - name: Windows MSVC Win32 40 - name: Windows MSVC Win32
37 os: windows-latest 41 os: windows-latest
38 compiler: cl 42 compiler: cl
43 cflags: /WX /W3
39 cmake-args: -A Win32 44 cmake-args: -A Win32
40 45
41 - name: Windows MSVC Win64 46 - name: Windows MSVC Win64
42 os: windows-latest 47 os: windows-latest
43 compiler: cl 48 compiler: cl
49 cflags: /WX /W3
44 cmake-args: -A x64 50 cmake-args: -A x64
45 51
46 - name: Windows GCC 52 - name: Windows GCC
47 os: windows-latest 53 os: windows-latest
48 compiler: gcc 54 compiler: gcc
55 cflags: -Werror -Wall -Wextra
49 cmake-args: -G Ninja 56 cmake-args: -G Ninja
50 57
51 - name: macOS Clang 58 - name: macOS Clang
52 os: macos-latest 59 os: macos-latest
53 compiler: clang 60 compiler: clang
61 cflags: -Werror -Wall -Wextra
54 62
55 - name: macOS GCC 63 - name: macOS GCC
56 os: macos-latest 64 os: macos-latest
57 compiler: gcc-11 65 compiler: gcc-11
66 cflags: -Werror -Wall -Wextra
58 67
59 steps: 68 steps:
60 - name: Checkout repository 69 - name: Checkout repository
diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml
index 14a5a18..0d71689 100644
--- a/.github/workflows/configure.yml
+++ b/.github/workflows/configure.yml
@@ -110,7 +110,7 @@ jobs:
110 ${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }} 110 ${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
111 env: 111 env:
112 CC: ${{ matrix.compiler }} 112 CC: ${{ matrix.compiler }}
113 CFLAGS: ${{ matrix.cflags }} 113 CFLAGS: ${{ matrix.cflags }} -Werror
114 LDFLAGS: ${{ matrix.ldflags }} 114 LDFLAGS: ${{ matrix.ldflags }}
115 CHOST: ${{ matrix.chost }} 115 CHOST: ${{ matrix.chost }}
116 116