From e912c941878f0ddc99699f4461a07fc888757ce4 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 11 Dec 2024 19:58:05 +0100 Subject: [PATCH] Add Windows CI job --- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a18dd09..7af04d6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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/setup-php-sdk@v0.10 + 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