Skip to content

Commit 468cdd0

Browse files
committed
Use appropriate windows machines in CI builds using exclude matrix
1 parent a27b5ea commit 468cdd0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,25 @@ on:
1010

1111
jobs:
1212
windows:
13-
runs-on: windows-latest
13+
runs-on: ${{matrix.os}}
1414
name: "Windows: Build and test"
1515
defaults:
1616
run:
1717
shell: cmd
1818
strategy:
1919
fail-fast: false
2020
matrix:
21+
os: [ windows-2019, windows-2022 ]
2122
php: ["7.3", "7.4", "8.0", "8.1", "8.2"]
2223
arch: [x86, x64]
2324
ts: [nts, ts]
2425
experimental: [false]
26+
exclude:
27+
- { os: windows-2019, php: "8.2" }
28+
- { os: windows-2019, php: "8.1" }
29+
- { os: windows-2019, php: "8.0" }
30+
- { os: windows-2022, php: "7.4" }
31+
- { os: windows-2022, php: "7.3" }
2532
steps:
2633
- name: Checkout Repository
2734
uses: actions/checkout@v3
@@ -36,7 +43,7 @@ jobs:
3643
echo $extension_version >> $env:GITHUB_ENV
3744
- name: Setup PHP
3845
id: setup-php
39-
uses: cmb69/setup-php-sdk@v0.7
46+
uses: php/setup-php-sdk@v0.10
4047
with:
4148
version: ${{matrix.php}}
4249
arch: ${{matrix.arch}}

0 commit comments

Comments
 (0)