Skip to content

Commit b01d3ce

Browse files
authored
Merge branch 'main' into feat/avif-dec
2 parents 608c915 + 794ab16 commit b01d3ce

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/build-unix.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ on:
4646
description: Prefer pre-built binaries (reduce build time)
4747
type: boolean
4848
default: true
49+
with-suggested-libs:
50+
description: Build with suggested libs
51+
type: boolean
52+
default: false
4953
debug:
5054
description: Show full build logs
5155
type: boolean
@@ -86,6 +90,10 @@ on:
8690
description: Prefer pre-built binaries (reduce build time)
8791
type: boolean
8892
default: true
93+
with-suggested-libs:
94+
description: Include suggested libs
95+
type: boolean
96+
default: false
8997
debug:
9098
description: Show full build logs
9199
type: boolean
@@ -157,6 +165,9 @@ jobs:
157165
if [ ${{ inputs.prefer-pre-built }} == true ]; then
158166
DOWN_CMD="$DOWN_CMD --prefer-pre-built"
159167
fi
168+
if [ ${{ inputs.with-suggested-libs }} == true ]; then
169+
BUILD_CMD="$BUILD_CMD --with-suggested-libs"
170+
fi
160171
if [ ${{ inputs.build-cli }} == true ]; then
161172
BUILD_CMD="$BUILD_CMD --build-cli"
162173
fi
@@ -202,6 +213,14 @@ jobs:
202213
# if: ${{ failure() }}
203214
# uses: mxschmitt/action-tmate@v3
204215

216+
# Upload debug logs
217+
- if: ${{ inputs.debug && failure() }}
218+
name: "Upload build logs on failure"
219+
uses: actions/upload-artifact@v4
220+
with:
221+
name: spc-logs-${{ inputs.php-version }}-${{ inputs.os }}
222+
path: log/*.log
223+
205224
# Upload cli executable
206225
- if: ${{ inputs.build-cli == true }}
207226
name: "Upload PHP cli SAPI"

0 commit comments

Comments
 (0)