Skip to content

Commit e912c94

Browse files
committed
Add Windows CI job
1 parent 0b684e5 commit e912c94

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,43 @@ jobs:
9292
env:
9393
TEST_PHP_ARGS: '-q --show-diff'
9494
run: make test
95+
Windows:
96+
defaults:
97+
run:
98+
shell: cmd
99+
runs-on: windows-2022
100+
strategy:
101+
matrix:
102+
php: ['8.4']
103+
arch: ['x64']
104+
ts: ['ts']
105+
steps:
106+
- name: Checkout xpass
107+
uses: actions/checkout@v4
108+
- name: Setup PHP
109+
id: setup-php
110+
111+
with:
112+
version: ${{matrix.php}}
113+
arch: ${{matrix.arch}}
114+
ts: ${{matrix.ts}}
115+
cache: true
116+
- name: Fetch libxcrypt
117+
run: |
118+
curl -Lso libxcrypt.zip https://github.com/cmb69/winlib-builder/actions/runs/12281525937/artifacts/2307215134
119+
7z x -odeps libxcrypt.zip
120+
- name: Enable Developer Command Prompt
121+
uses: ilammy/msvc-dev-cmd@v1
122+
with:
123+
arch: ${{matrix.arch}}
124+
toolset: ${{steps.setup-php.outputs.toolset}}
125+
- name: phpize
126+
run: phpize
127+
- name: configure
128+
run: configure --enable-xpass --with-prefix=${{steps.setup-php.outputs.prefix}}
129+
- name: make
130+
run: nmake
131+
- name: test
132+
env:
133+
TEST_PHP_ARGS: '-q --show-diff'
134+
run: nmake test

0 commit comments

Comments
 (0)