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

Added CXXFLAGS="-Wp,-D_GLIBCXX_ASSERTIONS" to gcc-9 and higher builds in GitHub Actions CI #361

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
17 changes: 15 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
CC: ${{ matrix.config.cc }}-${{ matrix.config.tag }}
CXX: ${{ matrix.config.cxx }}-${{ matrix.config.tag }}
GHA_CONTAINER: ${{ matrix.config.container }}
CCVERSION: ${{ matrix.config.tag }}

steps:
- name: if running in a container, update and install sudo, git, and other basics
Expand Down Expand Up @@ -91,9 +92,21 @@ jobs:
fi
./bootstrap.sh -a
- name: configure
run: ./configure --enable-ssl
run: |
if [[ "${CC}" == gcc* ]] && [ "${CCVERSION}" -ge 9 ]; then
CXXFLAGS="-Wp,-D_GLIBCXX_ASSERTIONS"
export CXXFLAGS
echo "CXXFLAGS: $CXXFLAGS"
fi
./configure --enable-ssl
- name: make
run: ${CC} --version && make
run: |
if [[ "${CC}" == gcc* ]] && [ "${CCVERSION}" -ge 9 ]; then
CXXFLAGS="-Wp,-D_GLIBCXX_ASSERTIONS"
export CXXFLAGS
echo "CXXFLAGS: $CXXFLAGS"
fi
${CC} --version && make
- name: make test
run: ${CC} --version && make test
- name: check test-suite.log
Expand Down