File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 6767 type : boolean
6868 description : " Boolean to enable the Python lint check job. Defaults to true."
6969 default : true
70+ linux_pre_build_command :
71+ type : string
72+ description : " Linux command to execute before building the Swift package"
73+ default : " "
7074
7175# # We are cancelling previously triggered workflow runs
7276concurrency :
9094 - name : Mark the workspace as safe
9195 # https://github.com/actions/checkout/issues/766
9296 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
97+ - name : Pre-build
98+ if : ${{ inputs.linux_pre_build_command }}
99+ run : ${{ inputs.linux_pre_build_command }}
93100 - name : Run API breakage check
94101 run : |
95102 git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
@@ -112,6 +119,9 @@ jobs:
112119 with :
113120 persist-credentials : false
114121 submodules : true
122+ - name : Pre-build
123+ if : ${{ inputs.linux_pre_build_command }}
124+ run : ${{ inputs.linux_pre_build_command }}
115125 - name : Run documentation check
116126 run : |
117127 which curl yq || (apt -q update && apt -yq install curl yq)
You can’t perform that action at this time.
0 commit comments