Fix msvc ci yaml issues

This commit is contained in:
ado 2023-07-29 15:30:05 +02:00
parent bdfd896861
commit b7f6009eb9

View File

@ -25,17 +25,17 @@ jobs:
run: run:
shell: bash shell: bash
runs-on: {{ matrix.config.os }} runs-on: ${{ matrix.config.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- os: windows-2019 - os: windows-2019
vs: "Visual Studio 16 2019" vs: "Visual Studio 16 2019"
- os: windows-latest - os: windows-latest
vs: "Visual Studio 17 2022" vs: "Visual Studio 17 2022"
build: [Debug, Release] build: [Debug, Release]
platform: [Win32, x64] platform: [Win32, x64]
@ -50,11 +50,14 @@ jobs:
run: script/ci_install_deps.sh run: script/ci_install_deps.sh
- name: Configure - name: Configure
run: cmake -S test -B build -G "${{ matrix.config.vs }}" -A ${{ matrix.platform }} --config ${{ matrix.build }} run: >-
cmake -S test -B build -G "${{matrix.config.vs}}"
-A ${{matrix.platform}} --config ${{matrix.build}}
- name: Build - name: Build
run: cmake --build build -j ${{ steps.cores.outputs.count }} run: cmake --build build -j ${{steps.cores.outputs.count}}
- name: Run - name: Run
working-directory: build working-directory: build
run: ctest -C Debug --output-on-failure -j ${{ steps.cores.outputs.count }} run: >-
ctest -C Debug --output-on-failure -j ${{steps.cores.outputs.count}}