File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed
Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change 99 # This will run weekly on Sunday at 00:00 UTC.
1010 - cron : ' 0 0 * * 0'
1111 workflow_dispatch :
12+ inputs :
13+ php_version :
14+ description : ' Select PHP version (optional)'
15+ required : false
16+ type : choice
17+ options :
18+ - ' 8.1'
19+ - ' 8.2'
20+ - ' 8.3'
21+ - ' 8.4'
22+ default : ' '
23+ operating_system :
24+ description : ' Select operating system (optional)'
25+ required : false
26+ type : choice
27+ options :
28+ - ' ubuntu-latest'
29+ - ' windows-latest'
30+ - ' macos-13'
31+ - ' macos-latest'
32+ default : ' '
33+ enable_debug :
34+ description : ' Enable debug mode'
35+ required : false
36+ default : ' false'
1237
1338env :
1439 GITHUB_TOKEN : ${{ secrets.PAT }}
2348 version : ["8.1", "8.2", "8.3", "8.4"]
2449 os : ["macos-13", "macos-latest", "windows-latest", "ubuntu-latest"]
2550
51+ include :
52+ - version : ${{ inputs.php_version || matrix.version }}
53+ os : ${{ inputs.operating_system || matrix.os }}
54+
2655 continue-on-error : true
2756
2857 steps :
@@ -121,7 +150,11 @@ jobs:
121150 - name : Build PHP
122151 run : |
123152 cd ../static-php-cli
124- ./bin/spc build --build-cli "${{ env.PHP_EXTENSIONS }}"
153+ if [[ "${{ inputs.enable_debug }}" == "true" ]]; then
154+ ./bin/spc build --build-cli --debug "${{ env.PHP_EXTENSIONS }}"
155+ else
156+ ./bin/spc build --build-cli "${{ env.PHP_EXTENSIONS }}"
157+ fi
125158 cd ../php-bin
126159
127160 - name : Get built PHP version
You can’t perform that action at this time.
0 commit comments