Skip to content

Commit 1289473

Browse files
committed
ci: replace AppVeyor with GitHub Actions for Windows
Use official php/php-windows-builder action for Windows CI. Handles PHP SDK setup and extension compilation automatically.
1 parent 132ca69 commit 1289473

2 files changed

Lines changed: 33 additions & 101 deletions

File tree

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,36 @@ jobs:
7575

7676
- name: Run PHPUnit tests
7777
run: composer test
78+
79+
windows:
80+
name: Windows - PHP ${{ matrix.php-version }} ${{ matrix.ts }} ${{ matrix.arch }}
81+
needs: get-windows-matrix
82+
runs-on: ${{ matrix.os }}
83+
strategy:
84+
fail-fast: false
85+
matrix: ${{ fromJson(needs.get-windows-matrix.outputs.matrix) }}
86+
steps:
87+
- name: Checkout
88+
uses: actions/checkout@v5
89+
90+
- name: Build the extension
91+
uses: php/php-windows-builder/extension@v1
92+
with:
93+
php-version: ${{ matrix.php-version }}
94+
arch: ${{ matrix.arch }}
95+
ts: ${{ matrix.ts }}
96+
args: --enable-ds
97+
98+
get-windows-matrix:
99+
runs-on: ubuntu-latest
100+
outputs:
101+
matrix: ${{ steps.extension-matrix.outputs.matrix }}
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v5
105+
106+
- name: Get the extension matrix
107+
id: extension-matrix
108+
uses: php/php-windows-builder/extension-matrix@v1
109+
with:
110+
php-version-list: '8.2, 8.3, 8.4, 8.5'

appveyor.yml

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)