Skip to content

Commit

Permalink
Github actions CI on Windows
Browse files Browse the repository at this point in the history
See krakjoe#81.  For now this just builds the extension and runs the tests
like on AppVeyor.  However, packaging for download is not yet done, but
that appears to be acceptable for now.
  • Loading branch information
cmb69 committed Dec 21, 2021
1 parent 963406f commit 903ff84
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Test
on: [push, pull_request]
jobs:
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ['7.2', '7.3', '7.4', '8.0', '8.1']
arch: [x64, x86]
ts: [nts, ts]
exclude:
- arch: x64
ts: nts
- arch: x86
ts: ts
runs-on: windows-2019
steps:
- name: Checkout pcov
uses: actions/checkout@v2
- name: Setup PHP
id: setup-php
uses: cmb69/setup-php-sdk@v0.2
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-pcov --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- name: test
run: nmake test TESTS="--show-diff -g FAIL,BORK,WARN,LEAK tests"

0 comments on commit 903ff84

Please sign in to comment.