Skip to content

chore(ci): update windows script #45

chore(ci): update windows script

chore(ci): update windows script #45

Workflow file for this run

name: Windows
on: [push]
env:
PHP_EXT: lz4
BIN_SDK_VER: 2.3.0
jobs:
ci:
strategy:
matrix:
php:
- '8.4'
- '8.3'
- '8.2'
- '8.1'
arch:
- x64
- x86
ts:
- 'nts'
- 'ts'
vs:
- vs16
- vs17
library:
- ''
- 'vcpkg'
exclude:
- php: '8.4'
vs: vs16
- php: '8.3'
vs: vs17
- php: '8.2'
vs: vs17
- php: '8.1'
vs: vs17
runs-on: ${{ matrix.vs == 'vs17' && 'windows-2022' || 'windows-2019' }}
env:
PHP_VER: ${{ matrix.php }}
VS: ${{ matrix.vs }}
ARCH: ${{ matrix.arch }}
TS: ${{ matrix.ts }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout submodule
run: .\.github\workflows\submodule.ps1
if: ${{ matrix.library == '' }}
- name: Install dependency library
run: .\.github\workflows\vcpkg.ps1
env:
VCPKG_LIBRARY: lz4
if: ${{ matrix.library }}
- name: Install build command
run: .\.github\workflows\install.ps1
- name: Build
run: .\.github\workflows\build.ps1
- name: Test
run: .\.github\workflows\test.ps1
env:
REPORT_EXIT_STATUS: 1
NO_INTERACTION: 1
- name: Store artifact DLL
uses: actions/upload-artifact@v4
with:
name: php_${{ env.PHP_EXT }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
path: .\php_${{ env.PHP_EXT }}.dll
overwrite: true
if: ${{ matrix.library == '' }}