File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : pie
2
+
3
+ on :
4
+ push :
5
+
6
+ env :
7
+ BIN_SDK_VER : 2.3.0
8
+
9
+ jobs :
10
+ pie :
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 }}-${{ hashFiles('C:\php\php-*.zip') }}
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=openssl"
71
+ shell : pwsh
72
+
73
+ - name : Install Snappy
74
+ run : |-
75
+ C:\php\bin\php.exe C:\php\pie.phar --version
76
+ C:\php\bin\php.exe C:\php\pie.phar install kjdev/snappy
77
+ shell : pwsh
78
+
79
+ - name : Check Snappy
80
+ run : |-
81
+ ls C:\php\bin\ext
82
+ cat C:\php\bin\php.ini
83
+ C:\php\bin\php.exe -m
84
+ C:\php\bin\php.exe --ri snappy
85
+ shell : pwsh
You can’t perform that action at this time.
0 commit comments