Skip to content

Commit

Permalink
CI: msvc: Use Ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Oct 29, 2024
1 parent 0668a2e commit 4afb805
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ runs:
echo CXXFLAGS="-Werror ${CXXFLAGS}" >> "$GITHUB_ENV"
shell: bash

- name: Setup MSVC toolchain
if: inputs.qt_arch == 'win64_msvc2019_64'
uses: ilammy/[email protected]

- name: Use Ninja with MSVC
if: inputs.qt_arch == 'win64_msvc2019_64'
run: |
# Need to use Ninja with MSVC, otherwise ccache doesn't work. And I don't want to use MSBuild anyway. Hopefully
# that won't be an issue.
echo cmake_extra_args="'-G Ninja'" >> "$GITHUB_ENV"
shell: bash

- name: Configure CMake
run: |
CFLAGS="${CFLAGS}" \
Expand Down

0 comments on commit 4afb805

Please sign in to comment.