Skip to content

Commit b21c62c

Browse files
Allow CI build to be called by other worklows (#698)
* add workflow_call * change type choice string * remove options for type string * when vendor-mode run composer install * move vendor-mode composer install * debug * move out vendor-mode inputs
1 parent a7adec1 commit b21c62c

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/build-unix.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,46 @@ on:
5353
description: Keep debug symbols for debugging
5454
type: boolean
5555
default: false
56+
workflow_call:
57+
inputs:
58+
os:
59+
required: true
60+
description: Build target OS
61+
default: 'linux-x86_64'
62+
type: string
63+
php-version:
64+
required: true
65+
description: PHP version to compile
66+
default: '8.4'
67+
type: string
68+
extensions:
69+
description: Extensions to build (comma separated)
70+
required: true
71+
type: string
72+
extra-libs:
73+
description: Extra libraries to build (optional, comma separated)
74+
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+
prefer-pre-built:
86+
description: Prefer pre-built binaries (reduce build time)
87+
type: boolean
88+
default: true
89+
debug:
90+
description: Show full build logs
91+
type: boolean
92+
no-strip:
93+
description: Keep debug symbols for debugging
94+
type: boolean
95+
default: false
5696

5797
env:
5898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -154,7 +194,6 @@ jobs:
154194
with:
155195
path: downloads
156196
key: php-dependencies-${{ inputs.os }}
157-
158197
- name: "Download sources"
159198
run: ${{ needs.define-build.outputs.download }}
160199
- name: "Build PHP"

0 commit comments

Comments
 (0)