Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: harden gcc build #197

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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