Skip to content

Commit d2910ac

Browse files
committed
wip: develop actions
1 parent 51ea08c commit d2910ac

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

.github/workflows/develop.yaml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: develop
2+
3+
on:
4+
push:
5+
6+
env:
7+
BIN_SDK_VER: 2.3.0
8+
9+
jobs:
10+
ci:
11+
strategy:
12+
matrix:
13+
php:
14+
- '8.4'
15+
# - '8.3'
16+
# - '8.2'
17+
# - '8.1'
18+
arch:
19+
# - x64
20+
- x86
21+
ts:
22+
- 'nts'
23+
# - 'ts'
24+
vs:
25+
# - vs16
26+
- vs17
27+
# exclude:
28+
# - php: '8.4'
29+
# vs: vs16
30+
# - php: '8.3'
31+
# vs: vs17
32+
# - php: '8.2'
33+
# vs: vs17
34+
# - php: '8.1'
35+
# vs: vs17
36+
37+
runs-on: ${{ matrix.vs == 'vs17' && 'windows-2022' || 'windows-2019' }}
38+
39+
env:
40+
PHP_VER: ${{ matrix.php }}
41+
VS: ${{ matrix.vs }}
42+
ARCH: ${{ matrix.arch }}
43+
TS: ${{ matrix.ts }}
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
with:
49+
persist-credentials: false
50+
51+
- uses: actions/cache@v4
52+
with:
53+
path: |
54+
C:\php\php-*.zip
55+
key: ${{ runner.os }}-php
56+
57+
- name: Debug before install
58+
run: ls C:\php
59+
shell: pwsh
60+
61+
- name: Install build command
62+
run: .\.github\workflows\install.ps1
63+
shell: pwsh
64+
65+
- name: Debug after install
66+
run: ls C:\php
67+
shell: pwsh
68+
69+
- name: Install PIE
70+
run: |-
71+
Invoke-WebRequest "https://github.com/php/pie/releases/download/0.8.0/pie.phar" -OutFile "C:\php\pie.phar"
72+
shell: pwsh
73+
74+
- name: Setup PHP
75+
run: |-
76+
$ini = New-Item "C:\php\bin\php.ini" -Force
77+
Add-Content $ini "extension_dir=C:\php\bin\ext"
78+
Add-Content $ini "extension=php_openssl.dll"
79+
shell: pwsh
80+
81+
- name: Check PHP
82+
run: |-
83+
C:\php\bin\php.exe -m
84+
ls C:\php\bin\ext
85+
shell: pwsh
86+
87+
- name: Check PIE
88+
run: |-
89+
C:\php\bin\php.exe C:\php\pie.phar --version
90+
shell: pwsh
91+
92+
- name: Install Snappy
93+
run: |-
94+
C:\php\bin\php.exe C:\php\pie.phar install kjdev/snappy
95+
shell: pwsh
96+
97+
- name: Check Snappy
98+
run: |-
99+
ls C:\php\bin\ext
100+
cat C:\php\bin\php.ini
101+
C:\php\bin\php.exe -m
102+
shell: pwsh

0 commit comments

Comments
 (0)