Skip to content

Commit aced105

Browse files
authored
Merge pull request #66 from rnro/soundness_pre_build
Add linux_pre_run_command to soundness
2 parents 04405cc + 1ba2fd8 commit aced105

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/soundness.yml

+10
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ on:
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
7276
concurrency:
@@ -90,6 +94,9 @@ jobs:
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)

0 commit comments

Comments
 (0)