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 9
9
# This will run weekly on Sunday at 00:00 UTC.
10
10
- cron : ' 0 0 * * 0'
11
11
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'
12
37
13
38
env :
14
39
GITHUB_TOKEN : ${{ secrets.PAT }}
23
48
version : ["8.1", "8.2", "8.3", "8.4"]
24
49
os : ["macos-13", "macos-latest", "windows-latest", "ubuntu-latest"]
25
50
51
+ include :
52
+ - version : ${{ inputs.php_version || matrix.version }}
53
+ os : ${{ inputs.operating_system || matrix.os }}
54
+
26
55
continue-on-error : true
27
56
28
57
steps :
@@ -121,7 +150,11 @@ jobs:
121
150
- name : Build PHP
122
151
run : |
123
152
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
125
158
cd ../php-bin
126
159
127
160
- name : Get built PHP version
You can’t perform that action at this time.
0 commit comments