Skip to content

Commit

Permalink
CI: harden gcc build (#197)
Browse files Browse the repository at this point in the history
added CFLAGS=-Werror to gcc builds
  • Loading branch information
chipitsine authored Oct 25, 2024
1 parent e72afd6 commit 58414fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ jobs:
Test:
strategy:
matrix:
cc: [ gcc, clang ]
platform: [
{ cc: gcc, MAKE_EXTRAFLAGS: "AM_MAKEFLAGS=CFLAGS=-Werror" },
{ cc: clang, MAKE_EXTRAFLAGS: "" }
]
fail-fast: false
name: ${{ matrix.cc }}
name: ${{ matrix.platform.cc }}
runs-on: ubuntu-24.04
services:
postgres:
Expand Down Expand Up @@ -48,11 +51,10 @@ jobs:
- name: configure
run: |
autoreconf -iv
CC=${{ matrix.cc }} CFLAGS="-ggdb -fsanitize=address" ./configure --prefix=/usr
CC=${{ matrix.platform.cc }} CFLAGS="-ggdb -fsanitize=address" ./configure --prefix=/usr
- name: build
run: |
##make AM_MAKEFLAGS=CFLAGS=-Werror
make
make ${{ matrix.platform.MAKE_EXTRAFLAGS }}
sudo make install
- name: mariadb smoke test
run: |
Expand Down

0 comments on commit 58414fe

Please sign in to comment.