Skip to content

Commit 2aa4212

Browse files
authored
Update build-macos-x86_64.yml
1 parent bc7dba6 commit 2aa4212

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build-macos-x86_64.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313
- '8.3'
1414
- '8.2'
1515
- '8.1'
16-
- '8.0'
17-
- '7.4'
1816
build-cli:
1917
description: build cli binary
2018
default: true
@@ -36,6 +34,10 @@ on:
3634
debug:
3735
description: enable debug logs
3836
type: boolean
37+
no-strip:
38+
description: keep debug symbols for debugging
39+
type: boolean
40+
default: false
3941

4042
env:
4143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -88,6 +90,8 @@ jobs:
8890
run: echo "SPC_BUILD_DEBUG=--debug" >> $GITHUB_ENV
8991
- if: inputs.prefer-pre-built == true
9092
run: echo "SPC_PRE_BUILT=--prefer-pre-built" >> $env:GITHUB_ENV
93+
- if: inputs.no-strip == true
94+
run: echo "SPC_NO_STRIP=--no-strip" >> $env:GITHUB_ENV
9195

9296
# With target select: cli, micro or both
9397
- if: ${{ inputs.build-cli == true }}
@@ -99,10 +103,10 @@ jobs:
99103

100104
# If there's no dependencies cache, fetch sources, with or without debug
101105
- if: steps.cache-download.outputs.cache-hit != 'true'
102-
run: ./bin/spc download --with-php=${{ inputs.version }} --for-extensions=${{ inputs.extensions }} ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }}
106+
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
103107

104108
# Run build command
105-
- run: ./bin/spc build ${{ inputs.extensions }} ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }}
109+
- 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 }}
106110

107111
# Upload cli executable
108112
- if: ${{ inputs.build-cli == true }}

0 commit comments

Comments
 (0)