Bump php/setup-php-sdk from 0.9 to 0.10 #91
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
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@v4 | |
- name: Setup PHP | |
id: setup-php | |
uses: php/setup-php-sdk@v0.10 | |
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" |