Skip to content

Commit f9b0653

Browse files
committed
wip: pie
1 parent 45cec1b commit f9b0653

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

.github/workflows/pie.yaml

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

0 commit comments

Comments
 (0)