Skip to content

Commit

Permalink
Use appropriate windows machines in CI builds using exclude matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Oct 9, 2024
1 parent a27b5ea commit 468cdd0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,25 @@ on:

jobs:
windows:
runs-on: windows-latest
runs-on: ${{matrix.os}}
name: "Windows: Build and test"
defaults:
run:
shell: cmd
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
Expand All @@ -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: php/setup-php-sdk@v0.10
with:
version: ${{matrix.php}}
arch: ${{matrix.arch}}
Expand Down

0 comments on commit 468cdd0

Please sign in to comment.