Change: [Actions] stop using 'run-cmake' action for CI

This commit is contained in:
glx22 2021-02-20 22:40:20 +01:00 committed by Loïc Guilloux
parent 8476f12432
commit 30ae019095
1 changed files with 21 additions and 6 deletions

View File

@ -264,13 +264,28 @@ jobs:
- name: Install MSVC problem matcher - name: Install MSVC problem matcher
uses: ammaraskar/msvc-problem-matcher@master uses: ammaraskar/msvc-problem-matcher@master
- name: Build - name: Configure developer command prompt for ${{ matrix.arch }}
uses: lukka/run-cmake@v3 uses: ilammy/msvc-dev-cmd@v1
with: with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced arch: ${{ matrix.arch }}
useVcpkgToolchainFile: true
buildDirectory: '${{ github.workspace }}/build' - name: Build
cmakeAppendedArgs: ' -GNinja' 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 - name: Test
shell: bash shell: bash