|
9 | 9 | default: 'linux-x86_64' |
10 | 10 | type: choice |
11 | 11 | options: |
12 | | - - 'linux-x86_64' |
13 | | - - 'linux-aarch64' |
14 | 12 | - 'linux-x86_64-glibc' |
15 | 13 | - 'linux-aarch64-glibc' |
16 | 14 | - 'macos-x86_64' |
|
22 | 20 | type: choice |
23 | 21 | options: |
24 | 22 | - '8.4' |
25 | | - - '8.3' |
26 | | - - '8.2' |
27 | | - - '8.1' |
28 | 23 | extensions: |
29 | 24 | description: Extensions to build (comma separated) |
30 | 25 | required: true |
| 26 | + default: 'ctype,ffi,filter,iconv,opcache,phar,shmop,sockets,zlib' |
31 | 27 | type: string |
32 | 28 | extra-libs: |
33 | 29 | description: Extra libraries to build (optional, comma separated) |
34 | 30 | type: string |
35 | | - build-cli: |
36 | | - description: Build cli binary |
37 | | - default: true |
38 | | - type: boolean |
39 | | - build-micro: |
40 | | - description: Build phpmicro binary |
41 | | - type: boolean |
42 | | - build-fpm: |
43 | | - description: Build fpm binary |
44 | | - type: boolean |
45 | 31 | prefer-pre-built: |
46 | 32 | description: Prefer pre-built binaries (reduce build time) |
47 | 33 | type: boolean |
|
68 | 54 | extensions: |
69 | 55 | description: Extensions to build (comma separated) |
70 | 56 | required: true |
| 57 | + default: 'ctype,ffi,filter,iconv,opcache,phar,shmop,sockets,zlib' |
71 | 58 | type: string |
72 | 59 | extra-libs: |
73 | 60 | description: Extra libraries to build (optional, comma separated) |
74 | 61 | type: string |
75 | | - build-cli: |
76 | | - description: Build cli binary |
77 | | - default: true |
78 | | - type: boolean |
79 | | - build-micro: |
80 | | - description: Build phpmicro binary |
81 | | - type: boolean |
82 | | - build-fpm: |
83 | | - description: Build fpm binary |
84 | | - type: boolean |
85 | 62 | prefer-pre-built: |
86 | 63 | description: Prefer pre-built binaries (reduce build time) |
87 | 64 | type: boolean |
@@ -113,16 +90,6 @@ jobs: |
113 | 90 | id: gendef |
114 | 91 | run: | |
115 | 92 | case "${{ inputs.os }}" in |
116 | | - linux-x86_64) |
117 | | - DOWN_CMD="./bin/spc-alpine-docker download" |
118 | | - BUILD_CMD="./bin/spc-alpine-docker build" |
119 | | - RUNS_ON="ubuntu-latest" |
120 | | - ;; |
121 | | - linux-aarch64) |
122 | | - DOWN_CMD="./bin/spc-alpine-docker download" |
123 | | - BUILD_CMD="./bin/spc-alpine-docker build" |
124 | | - RUNS_ON="ubuntu-24.04-arm" |
125 | | - ;; |
126 | 93 | linux-x86_64-glibc) |
127 | 94 | DOWN_CMD="./bin/spc-gnu-docker download" |
128 | 95 | BUILD_CMD="./bin/spc-gnu-docker build" |
@@ -157,15 +124,7 @@ jobs: |
157 | 124 | if [ ${{ inputs.prefer-pre-built }} == true ]; then |
158 | 125 | DOWN_CMD="$DOWN_CMD --prefer-pre-built" |
159 | 126 | fi |
160 | | - if [ ${{ inputs.build-cli }} == true ]; then |
161 | | - BUILD_CMD="$BUILD_CMD --build-cli" |
162 | | - fi |
163 | | - if [ ${{ inputs.build-micro }} == true ]; then |
164 | | - BUILD_CMD="$BUILD_CMD --build-micro" |
165 | | - fi |
166 | | - if [ ${{ inputs.build-fpm }} == true ]; then |
167 | | - BUILD_CMD="$BUILD_CMD --build-fpm" |
168 | | - fi |
| 127 | + BUILD_CMD="$BUILD_CMD --build-micro" |
169 | 128 | echo 'download='"$DOWN_CMD" >> "$GITHUB_OUTPUT" |
170 | 129 | echo 'build='"$BUILD_CMD" >> "$GITHUB_OUTPUT" |
171 | 130 | echo 'run='"$RUNS_ON" >> "$GITHUB_OUTPUT" |
@@ -202,30 +161,13 @@ jobs: |
202 | 161 | # if: ${{ failure() }} |
203 | 162 | # uses: mxschmitt/action-tmate@v3 |
204 | 163 |
|
205 | | - # Upload cli executable |
206 | | - - if: ${{ inputs.build-cli == true }} |
207 | | - name: "Upload PHP cli SAPI" |
208 | | - uses: actions/upload-artifact@v4 |
209 | | - with: |
210 | | - name: php-cli-${{ inputs.php-version }}-${{ inputs.os }} |
211 | | - path: buildroot/bin/php |
212 | | - |
213 | 164 | # Upload micro self-extracted executable |
214 | | - - if: ${{ inputs.build-micro == true }} |
215 | | - name: "Upload PHP micro SAPI" |
| 165 | + - name: "Upload PHP micro SAPI" |
216 | 166 | uses: actions/upload-artifact@v4 |
217 | 167 | with: |
218 | 168 | name: php-micro-${{ inputs.php-version }}-${{ inputs.os }} |
219 | 169 | path: buildroot/bin/micro.sfx |
220 | 170 |
|
221 | | - # Upload fpm executable |
222 | | - - if: ${{ inputs.build-fpm == true }} |
223 | | - name: "Upload PHP fpm SAPI" |
224 | | - uses: actions/upload-artifact@v4 |
225 | | - with: |
226 | | - name: php-fpm-${{ inputs.php-version }}-${{ inputs.os }} |
227 | | - path: buildroot/bin/php-fpm |
228 | | - |
229 | 171 | # Upload extensions metadata |
230 | 172 | - uses: actions/upload-artifact@v4 |
231 | 173 | name: "Upload License Files" |
|
0 commit comments