Skip to content

Commit

Permalink
wip windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Aug 1, 2024
1 parent 78495c0 commit 9edc755
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
name: CI
on: [push, pull_request]
jobs:
CI:
Windows:
runs-on: windows-2022
defaults:
run:
shell: cmd
strategy:
matrix:
arch: ["x64"]
version: ["8.1", "8.2", "8.3"]
ts: ["nts", "ts"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
id: setup-php
uses: php/setup-php-sdk@v0.8
with:
arch: ${{ matrix.arch }}
version: ${{ matrix.version }}
ts: ${{ matrix.ts }}
- name: Enable developer command prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
toolset: ${{ steps.setup-php.outputs.toolset }}
- name: Build
run: |
cd "ext"
phpize
configure --with-prefix=${{ steps.setup-php.outputs.prefix }}
nmake
- name: Test
run: nmake test TESTS="--show-diff tests"
Linux:
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
matrix:
arch: ["amd64", "arm64v8", "s390x"]
Expand All @@ -13,8 +45,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
Expand Down

0 comments on commit 9edc755

Please sign in to comment.