-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (42 loc) · 1.14 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and test on Windows
on:
push:
branches: [ main ]
pull_request:
release:
types: [ created ]
jobs:
tests:
runs-on: windows-2019
name: Build and test
defaults:
run:
shell: cmd
strategy:
matrix:
version: [ "8.0", "8.1", "8.2", "8.3" ]
arch: [ "x64" ]
ts: [ "ts" ]
steps:
- name: Checkout jsonpath
uses: actions/checkout@v2
- name: Setup PHP
id: setup-php
uses: php/setup-php-sdk@v0.8
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: Run phpize for jsonpath
run: phpize
- name: Run configure for jsonpath
run: configure --enable-jsonpath --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: Compile jsonpath
run: nmake
- name: Run jsonpath tests
run: nmake test TESTS="-j2 --show-diff -g FAIL,BORK,WARN,LEAK tests"