From 39d521c24f83ecb6a414f611fc0ce9d2c370da17 Mon Sep 17 00:00:00 2001 From: Hannes Rantzsch Date: Tue, 21 May 2024 18:25:48 +0200 Subject: [PATCH] windows generator name --- .github/workflows/ci.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dd674e..d97b560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,20 +12,28 @@ on: jobs: - Windows-test: - runs-on: ${{ matrix.os }} + windows-test: + runs-on: ${{ matrix.os.image }} strategy: matrix: - os: [windows-2019, windows-2022] + os: + - { + image: windows-2019, + generator: "Visual Studio 16 2019" + } + - { + image: windows-2022, + generator: "Visual Studio 17 2022" + } config: [Debug, Release] steps: - uses: actions/checkout@v4 - name: Run cmake - run: cmake -G "Visual Studio 17" . -DBUILD_TESTS=yes -DCODE_COVERAGE=no + run: cmake -G "${{ matrix.os.generator }}" . -DBUILD_TESTS=yes -DCODE_COVERAGE=no - name: Build and run tests run: cmake --build . --target test --config ${{ matrix.config }} - Unix-test: + unix-test: runs-on: ${{ matrix.os }} strategy: matrix: @@ -53,7 +61,7 @@ jobs: fi cmake --build . --target test - Unix-test-coverage: + unix-test-coverage: runs-on: ${{ matrix.os }} strategy: matrix: