Skip to content

Commit

Permalink
Add Windows CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Dec 11, 2024
1 parent 0b684e5 commit e912c94
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,43 @@ jobs:
env:
TEST_PHP_ARGS: '-q --show-diff'
run: make test
Windows:
defaults:
run:
shell: cmd
runs-on: windows-2022
strategy:
matrix:
php: ['8.4']
arch: ['x64']
ts: ['ts']
steps:
- name: Checkout xpass
uses: actions/checkout@v4
- name: Setup PHP
id: setup-php
uses: php/[email protected]
with:
version: ${{matrix.php}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
cache: true
- name: Fetch libxcrypt
run: |
curl -Lso libxcrypt.zip https://github.com/cmb69/winlib-builder/actions/runs/12281525937/artifacts/2307215134
7z x -odeps libxcrypt.zip
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.arch}}
toolset: ${{steps.setup-php.outputs.toolset}}
- name: phpize
run: phpize
- name: configure
run: configure --enable-xpass --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: test
env:
TEST_PHP_ARGS: '-q --show-diff'
run: nmake test

0 comments on commit e912c94

Please sign in to comment.