Fix msvc vs 16 ci

This commit is contained in:
ado 2023-07-29 15:17:39 +02:00
parent d6bc8086b2
commit bdfd896861

View File

@ -1,4 +1,4 @@
name: win-latest-msvc-ci name: win-msvc-ci
on: on:
push: push:
@ -25,16 +25,22 @@ jobs:
run: run:
shell: bash shell: bash
runs-on: windows-latest runs-on: {{ matrix.config.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
vs: ["Visual Studio 16 2019", "Visual Studio 17 2022"] config:
- os: windows-2019
vs: "Visual Studio 16 2019"
- os: windows-latest
vs: "Visual Studio 17 2022"
build: [Debug, Release] build: [Debug, Release]
platform: [Win32, x64] platform: [Win32, x64]
name: "${{matrix.vs}}:${{matrix.platform}}:${{matrix.build}}" name: "${{matrix.config.vs}}:${{matrix.platform}}:${{matrix.build}}"
steps: steps:
- name: checkout - name: checkout
@ -44,7 +50,7 @@ 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.vs }}" -A ${{ matrix.platform }} -D CMAKE_BUILD_TYPE=${{ 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 }}