Skip to content

Commit

Permalink
CI: Don't use Werror on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Oct 21, 2024
1 parent 148fb55 commit ee1ea7a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,17 @@ runs:
echo CMAKE_BIN="${Qt6_DIR}/bin/qt-cmake" >> "$GITHUB_ENV"
shell: bash

- name: Add Werror
if: inputs.qt_arch != 'win64_msvc2019_64'
run: |
echo CFLAGS="-Werror ${CFLAGS}" >> "$GITHUB_ENV"
echo CXXFLAGS="-Werror ${CXXFLAGS}" >> "$GITHUB_ENV"
shell: bash

- name: Configure CMake
run: |
CFLAGS="-Werror ${CFLAGS}" \
CXXFLAGS="-Werror ${CXXFLAGS}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
"${CMAKE_BIN:-cmake}" \
-S '${{github.workspace}}' \
-B '${{github.workspace}}/build' \
Expand Down

0 comments on commit ee1ea7a

Please sign in to comment.