From 2aa42123f6ce718d63963bfeffdbab13c0256858 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Fri, 6 Dec 2024 13:07:52 +0800 Subject: [PATCH] Update build-macos-x86_64.yml --- .github/workflows/build-macos-x86_64.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-macos-x86_64.yml b/.github/workflows/build-macos-x86_64.yml index 205b20c5..619bbe6f 100644 --- a/.github/workflows/build-macos-x86_64.yml +++ b/.github/workflows/build-macos-x86_64.yml @@ -13,8 +13,6 @@ on: - '8.3' - '8.2' - '8.1' - - '8.0' - - '7.4' build-cli: description: build cli binary default: true @@ -36,6 +34,10 @@ on: debug: description: enable debug logs type: boolean + no-strip: + description: keep debug symbols for debugging + type: boolean + default: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -88,6 +90,8 @@ jobs: run: echo "SPC_BUILD_DEBUG=--debug" >> $GITHUB_ENV - if: inputs.prefer-pre-built == true run: echo "SPC_PRE_BUILT=--prefer-pre-built" >> $env:GITHUB_ENV + - if: inputs.no-strip == true + run: echo "SPC_NO_STRIP=--no-strip" >> $env:GITHUB_ENV # With target select: cli, micro or both - if: ${{ inputs.build-cli == true }} @@ -99,10 +103,10 @@ jobs: # If there's no dependencies cache, fetch sources, with or without debug - if: steps.cache-download.outputs.cache-hit != 'true' - run: ./bin/spc download --with-php=${{ inputs.version }} --for-extensions=${{ inputs.extensions }} ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }} + run: ./bin/spc download --with-php=${{ inputs.version }} --for-extensions=${{ inputs.extensions }} ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }} --ignore-cache-sources=php-src # Run build command - - run: ./bin/spc build ${{ inputs.extensions }} ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }} + - run: ./bin/spc build ${{ inputs.extensions }} ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_NO_STRIP }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }} # Upload cli executable - if: ${{ inputs.build-cli == true }}