forked from krakjoe/pcov
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |