Skip to content

Commit

Permalink
ci with -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Feb 14, 2025
1 parent 5457a06 commit 9234e40
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,24 @@ jobs:
if [[ "${{matrix.compiler}}" == intel-classic ]]; then
echo "CFLAGS=-diag-disable=10441" >> $GITHUB_ENV
echo "CXXFLAGS=-diag-disable=10441" >> $GITHUB_ENV
echo "CXXFLAGS=-diag-disable=10441 -Werror" >> $GITHUB_ENV
echo "FCFLAGS=-diag-disable=10441" >> $GITHUB_ENV
echo "FFLAGS=-diag-disable=10441" >> $GITHUB_ENV
fi
if [[ "${{matrix.compiler}}" == intel ]]; then
echo "CFLAGS=-Rno-debug-disables-optimization" >> $GITHUB_ENV
echo "CXXFLAGS=-Rno-debug-disables-optimization" >> $GITHUB_ENV
echo "CXXFLAGS=-Rno-debug-disables-optimization -Werror" >> $GITHUB_ENV
fi
if [[ "${{matrix.compiler}}" == gnu ]]; then
echo "CXXFLAGS=-Werror" >> $GITHUB_ENV
fi
if [[ "${{matrix.compiler}}" == nvhpc ]]; then
echo "CXXFLAGS=-Werror" >> $GITHUB_ENV
fi
if [[ "${{matrix.compiler}}" == clang ]]; then
echo "CXXFLAGS=-Werror" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 9234e40

Please sign in to comment.