From 0b0b3297fcdacba49577df83ef144381bd608f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kubern=C3=A1t?= Date: Tue, 29 Oct 2024 19:20:03 +0100 Subject: [PATCH] CI: msvc: Use Ninja --- .github/actions/cmake/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/cmake/action.yml b/.github/actions/cmake/action.yml index 99eb2713..f84d38e5 100644 --- a/.github/actions/cmake/action.yml +++ b/.github/actions/cmake/action.yml @@ -50,6 +50,8 @@ runs: CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} '-DMINGW=ON' '-G MinGW Makefiles'" else vcpkg install doctest trompeloeil + # Need to use Ninja, otherwise ccache doesn't work + CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} '-G Ninja'" fi echo cmake_extra_args="${CMAKE_EXTRA_ARGS}" >> "$GITHUB_ENV" @@ -90,6 +92,10 @@ runs: echo CXXFLAGS="-Werror ${CXXFLAGS}" >> "$GITHUB_ENV" shell: bash + - name: Setup MSVC toolchain + if: inputs.qt_arch == 'win64_msvc2019_64' + uses: ilammy/msvc-dev-cmd@v1.4.1 + - name: Configure CMake run: | CFLAGS="${CFLAGS}" \