Skip to content

Commit

Permalink
CI: build and test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 authored and nikic committed Jun 20, 2021
1 parent 3d96f1a commit 2bca25d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Test
on: [push]
jobs:
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ["8.1"]
arch: [x64]
ts: [ts]
runs-on: windows-latest
steps:
- name: Checkout apcu
uses: actions/checkout@v2
- name: Setup PHP
id: setup-php
uses: cmb69/[email protected]
with:
version: ${{matrix.version}}
arch: ${{matrix.arch}}
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: phpize
run: phpize
- name: configure
run: configure --enable-apcu --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: test
run: nmake test TESTS=tests

0 comments on commit 2bca25d

Please sign in to comment.