mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Merge branch 'main' into feat/avif-dec
This commit is contained in:
commit
b01d3ce12c
19
.github/workflows/build-unix.yml
vendored
19
.github/workflows/build-unix.yml
vendored
@ -46,6 +46,10 @@ on:
|
|||||||
description: Prefer pre-built binaries (reduce build time)
|
description: Prefer pre-built binaries (reduce build time)
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
with-suggested-libs:
|
||||||
|
description: Build with suggested libs
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
debug:
|
debug:
|
||||||
description: Show full build logs
|
description: Show full build logs
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -86,6 +90,10 @@ on:
|
|||||||
description: Prefer pre-built binaries (reduce build time)
|
description: Prefer pre-built binaries (reduce build time)
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
with-suggested-libs:
|
||||||
|
description: Include suggested libs
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
debug:
|
debug:
|
||||||
description: Show full build logs
|
description: Show full build logs
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -157,6 +165,9 @@ jobs:
|
|||||||
if [ ${{ inputs.prefer-pre-built }} == true ]; then
|
if [ ${{ inputs.prefer-pre-built }} == true ]; then
|
||||||
DOWN_CMD="$DOWN_CMD --prefer-pre-built"
|
DOWN_CMD="$DOWN_CMD --prefer-pre-built"
|
||||||
fi
|
fi
|
||||||
|
if [ ${{ inputs.with-suggested-libs }} == true ]; then
|
||||||
|
BUILD_CMD="$BUILD_CMD --with-suggested-libs"
|
||||||
|
fi
|
||||||
if [ ${{ inputs.build-cli }} == true ]; then
|
if [ ${{ inputs.build-cli }} == true ]; then
|
||||||
BUILD_CMD="$BUILD_CMD --build-cli"
|
BUILD_CMD="$BUILD_CMD --build-cli"
|
||||||
fi
|
fi
|
||||||
@ -202,6 +213,14 @@ jobs:
|
|||||||
# if: ${{ failure() }}
|
# if: ${{ failure() }}
|
||||||
# uses: mxschmitt/action-tmate@v3
|
# uses: mxschmitt/action-tmate@v3
|
||||||
|
|
||||||
|
# Upload debug logs
|
||||||
|
- if: ${{ inputs.debug && failure() }}
|
||||||
|
name: "Upload build logs on failure"
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: spc-logs-${{ inputs.php-version }}-${{ inputs.os }}
|
||||||
|
path: log/*.log
|
||||||
|
|
||||||
# Upload cli executable
|
# Upload cli executable
|
||||||
- if: ${{ inputs.build-cli == true }}
|
- if: ${{ inputs.build-cli == true }}
|
||||||
name: "Upload PHP cli SAPI"
|
name: "Upload PHP cli SAPI"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user