From b21c62c11d8745b65a16e03b80d3ccbdd97c5b47 Mon Sep 17 00:00:00 2001 From: tricker Date: Tue, 22 Apr 2025 09:09:17 +0200 Subject: [PATCH] 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 --- .github/workflows/build-unix.yml | 41 +++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-unix.yml b/.github/workflows/build-unix.yml index 457910da..e0b51614 100644 --- a/.github/workflows/build-unix.yml +++ b/.github/workflows/build-unix.yml @@ -53,6 +53,46 @@ on: description: Keep debug symbols for debugging type: boolean default: false + workflow_call: + inputs: + os: + required: true + description: Build target OS + default: 'linux-x86_64' + type: string + php-version: + required: true + description: PHP version to compile + default: '8.4' + type: string + extensions: + description: Extensions to build (comma separated) + required: true + type: string + extra-libs: + description: Extra libraries to build (optional, comma separated) + type: string + build-cli: + description: Build cli binary + default: true + type: boolean + build-micro: + description: Build phpmicro binary + type: boolean + build-fpm: + description: Build fpm binary + type: boolean + prefer-pre-built: + description: Prefer pre-built binaries (reduce build time) + type: boolean + default: true + debug: + description: Show full build logs + type: boolean + no-strip: + description: Keep debug symbols for debugging + type: boolean + default: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -154,7 +194,6 @@ jobs: with: path: downloads key: php-dependencies-${{ inputs.os }} - - name: "Download sources" run: ${{ needs.define-build.outputs.download }} - name: "Build PHP"