From 30ae0190952d53f8e261e04b5b4e09efb1fdfd22 Mon Sep 17 00:00:00 2001 From: glx22 Date: Sat, 20 Feb 2021 22:40:20 +0100 Subject: Change: [Actions] stop using 'run-cmake' action for CI --- .github/workflows/ci-build.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 7996fd9be..ebdb06729 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -264,13 +264,28 @@ jobs: - name: Install MSVC problem matcher uses: ammaraskar/msvc-problem-matcher@master - - name: Build - uses: lukka/run-cmake@v3 + - name: Configure developer command prompt for ${{ matrix.arch }} + uses: ilammy/msvc-dev-cmd@v1 with: - cmakeListsOrSettingsJson: CMakeListsTxtAdvanced - useVcpkgToolchainFile: true - buildDirectory: '${{ github.workspace }}/build' - cmakeAppendedArgs: ' -GNinja' + arch: ${{ matrix.arch }} + + - name: Build + shell: bash + run: | + mkdir build + cd build + + echo "::group::CMake" + cmake .. \ + -GNinja \ + -DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-windows-static \ + -DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" \ + # EOF + echo "::endgroup::" + + echo "::group::Build" + cmake --build . + echo "::endgroup::" - name: Test shell: bash -- cgit v1.2.3-70-g09d2