@@ -19,15 +19,23 @@ jobs:
19
19
- os : ubuntu-latest
20
20
arch : x64-linux
21
21
spc_suffix : linux-x86_64.tar.gz
22
+ compressed_file : php-8.3.9-micro-linux-x86_64.tar.gz
23
+ micro_suffix : common/php-8.3.9-micro-linux-x86_64.tar.gz
22
24
- os : macos-latest
23
25
arch : x64-darwin
24
26
spc_suffix : macos-x86_64.tar.gz
27
+ compressed_file : php-8.3.9-micro-macos-x86_64.tar.gz
28
+ micro_suffix : common/php-8.3.9-micro-macos-x86_64.tar.gz
25
29
- os : macos-14
26
30
arch : arm64-darwin
27
31
spc_suffix : macos-aarch64.tar.gz
28
- # - os: windows-latest
29
- # arch: x64-win32
30
- # spc_suffix: windows-x86_64.zip
32
+ compressed_file : php-8.3.9-micro-macos-aarch64.tar.gz
33
+ micro_suffix : common/php-8.3.9-micro-macos-aarch64.tar.gz
34
+ - os : windows-latest
35
+ arch : x64-win32
36
+ spc_suffix : windows-x86_64.zip
37
+ compressed_file : php-8.3.9-micro-win.zip
38
+ micro_suffix : windows/spc-max/php-8.3.9-micro-win.zip
31
39
steps :
32
40
- name : Checkout code
33
41
uses : actions/checkout@v4
@@ -60,15 +68,29 @@ jobs:
60
68
61
69
- name : Download PHP
62
70
run : |
63
- curl -O -L "https://dl.static-php.dev/static-php-cli/common/php-8.3.9-micro- ${{ matrix.spc_suffix }}"
64
- tar xzf "php-8.3.9-micro- ${{ matrix.spc_suffix }}"
71
+ curl -O -L "https://dl.static-php.dev/static-php-cli/${{ matrix.micro_suffix }}"
72
+ tar xzf "${{ matrix.compressed_file }}"
65
73
mkdir -p buildroot/bin
66
74
mv micro.sfx buildroot/bin
67
75
68
- - name : SPC Build and Combine
76
+ - name : Extract Archive (Zip)
77
+ run : |
78
+ unzip "${{ matrix.compressed_file }}"
79
+ if : endsWith(matrix.compressed_file, 'zip')
80
+
81
+ - name : Extract Archive (Tar)
82
+ run : |
83
+ tar xzf "${{ matrix.compressed_file }}"
84
+ if : ${{ !endsWith(matrix.compressed_file, 'zip') }}
85
+
86
+ - name : Move Binary
87
+ run : |
88
+ mkdir -p buildroot/bin
89
+ mv micro.sfx buildroot/bin
90
+
91
+ - name : SPC Combine
69
92
run : |
70
93
./spc micro:combine builds/php-parser -O bin/php-parser-${{ env.VERSION }}-${{ matrix.arch }}
71
- ls -l bin/
72
94
73
95
- name : Upload binary as artifact
74
96
uses : actions/upload-artifact@v4
0 commit comments