From 7b6c27c4ccd51fa57c492453a4a21379fbed3cec Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Wed, 9 Oct 2024 21:27:30 +0100 Subject: [PATCH] Use appropriate windows machines in CI builds using exclude matrix --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f33c232..1192abd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: jobs: windows: - runs-on: windows-latest + runs-on: ${{matrix.os}} name: "Windows: Build and test" defaults: run: @@ -18,10 +18,17 @@ jobs: strategy: fail-fast: false matrix: + os: [ windows-2019, windows-2022 ] php: ["7.3", "7.4", "8.0", "8.1", "8.2"] arch: [x86, x64] ts: [nts, ts] experimental: [false] + exclude: + - { os: windows-2019, php: "8.2" } + - { os: windows-2019, php: "8.1" } + - { os: windows-2019, php: "8.0" } + - { os: windows-2022, php: "7.4" } + - { os: windows-2022, php: "7.3" } steps: - name: Checkout Repository uses: actions/checkout@v3 @@ -36,7 +43,7 @@ jobs: echo $extension_version >> $env:GITHUB_ENV - name: Setup PHP id: setup-php - uses: cmb69/setup-php-sdk@v0.7 + uses: cmb69/setup-php-sdk@v0.10 with: version: ${{matrix.php}} arch: ${{matrix.arch}}