-
Notifications
You must be signed in to change notification settings - Fork 36
65 lines (54 loc) · 1.36 KB
/
windows.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Windows
on: [push]
env:
PHP_EXT: snappy
BIN_SDK_VER: 2.2.0
jobs:
ci:
strategy:
matrix:
php:
- '8.2'
- '8.1'
- '8.0'
arch:
- x64
- x86
ts:
- 'nts'
- 'ts'
library:
- ''
- 'vcpkg'
runs-on: windows-2019
env:
PHP_VER: ${{ matrix.php }}
VC: vs16
ARCH: ${{ matrix.arch }}
TS: ${{ matrix.ts }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout submodule
run: .\.github\workflows\submodule.ps1
if: ${{ matrix.library == '' }}
- name: Install dependency library
run: .\.github\workflows\vcpkg.ps1
env:
VCPKG_LIBRARY: snappy
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@v3
with:
name: php_${{ env.PHP_EXT }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vc }}-${{ matrix.arch }}
path: .\php_${{ env.PHP_EXT }}.dll
if: ${{ matrix.library == '' }}