File tree Expand file tree Collapse file tree 1 file changed +87
-0
lines changed Expand file tree Collapse file tree 1 file changed +87
-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 }}-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
56
+ restore-keys : |
57
+ ${{ runner.os }}-php-
58
+
59
+ - name : Install build command
60
+ run : .\.github\workflows\install.ps1
61
+ shell : pwsh
62
+
63
+ - name : Install PIE
64
+ run : |-
65
+ Invoke-WebRequest "https://github.com/php/pie/releases/download/0.8.0/pie.phar" -OutFile "C:\php\pie.phar"
66
+ shell : pwsh
67
+
68
+ - name : Setup PHP
69
+ run : |-
70
+ $ini = New-Item "C:\php\bin\php.ini" -Force
71
+ Add-Content $ini "extension_dir=C:\php\bin\ext"
72
+ Add-Content $ini "extension=openssl"
73
+ shell : pwsh
74
+
75
+ - name : Install Snappy
76
+ run : |-
77
+ C:\php\bin\php.exe C:\php\pie.phar --version
78
+ C:\php\bin\php.exe C:\php\pie.phar install kjdev/snappy
79
+ shell : pwsh
80
+
81
+ - name : Check Snappy
82
+ run : |-
83
+ ls C:\php\bin\ext
84
+ cat C:\php\bin\php.ini
85
+ C:\php\bin\php.exe -m
86
+ C:\php\bin\php.exe --ri snappy
87
+ shell : pwsh
You can’t perform that action at this time.
0 commit comments