Skip to content

Commit a211615

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

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

.github/workflows/develop.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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: Install build command
58+
run: .\.github\workflows\install.ps1
59+
shell: pwsh
60+
61+
- name: Install PIE
62+
run: |-
63+
Invoke-WebRequest "https://github.com/php/pie/releases/download/0.8.0/pie.phar" -OutFile "C:\php\pie.phar"
64+
shell: pwsh
65+
66+
- name: Setup PHP
67+
run: |-
68+
$ini = New-Item "C:\php\bin\php.ini" -Force
69+
Add-Content $ini "extension_dir=C:\php\bin\ext"
70+
Add-Content $ini "extension=php_openssl.dll"
71+
72+
- name: Check PHP
73+
run: |-
74+
C:\php\bin\php.exe -m
75+
76+
- name: Check PIE
77+
run: |-
78+
C:\php\bin\php.exe C:\php\pie.phar --version
79+
80+
- name: Install Snappy
81+
run: |-
82+
C:\php\bin\php.exe C:\php\pie.phar install kjdev/snappy
83+
C:\php\bin\php.exe -m

0 commit comments

Comments
 (0)