Skip to content

Commit

Permalink
CI: harden gcc build
Browse files Browse the repository at this point in the history
added CFLAGS=-Werror to gcc builds
  • Loading branch information
chipitsine committed Oct 25, 2024
1 parent e72afd6 commit 324842d
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 324842d

Please sign in to comment.