66 - develop
77 - v1
88 - v3
9- pull_request :
10- workflow_dispatch : {}
9+ pull_request : {}
10+ workflow_dispatch :
11+ inputs :
12+ proof_systems_commit :
13+ description : ' proof_systems commit to use'
14+ required : false
15+ default : ' '
16+ workflow_call :
17+ inputs :
18+ proof_systems_commit :
19+ description : ' proof_systems commit to use'
20+ required : false
21+ type : string
22+ default : ' '
23+ target_repo :
24+ required : false
25+ type : string
26+ target_ref :
27+ required : false
28+ type : string
1129
1230concurrency :
1331 group : ${{ github.workflow }}-${{ github.ref }}
2442 uses : actions/checkout@v4
2543 with :
2644 submodules : recursive
45+ repository : ${{ inputs.target_repo || github.repository }}
46+ ref : ${{ inputs.target_ref || github.ref }}
2747 - name : Build
2848 uses : ./.github/actions/build
49+ with :
50+ repository : ${{ inputs.target_repo || github.repository }}
51+ ref : ${{ inputs.target_ref || github.ref }}
52+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
2953
3054 Lint-Format-and-TypoCheck :
3155 strategy :
3761 steps :
3862 - name : Checkout Repository
3963 uses : actions/checkout@v4
64+ with :
65+ repository : ${{ inputs.target_repo || github.repository }}
66+ ref : ${{ inputs.target_ref || github.ref }}
4067 - name : Setup Node.JS ${{ matrix.node }}
4168 uses : actions/setup-node@v4
4269 with :
@@ -81,12 +108,15 @@ jobs:
81108
82109 Upload-bindings :
83110 name : upload bindings artifact
111+ if : ${{ inputs.proof_systems_commit == '' }}
84112 needs : [Prepare]
85113 runs-on : ubuntu-latest
86114 steps :
87115 - uses : actions/checkout@v4
88116 with :
89117 submodules : recursive
118+ repository : ${{ inputs.target_repo || github.repository }}
119+ ref : ${{ inputs.target_ref || github.ref }}
90120 - name : upload
91121 uses : ./.github/actions/upload
92122 with :
@@ -117,9 +147,15 @@ jobs:
117147 uses : actions/checkout@v4
118148 with :
119149 submodules : recursive
150+ repository : ${{ inputs.target_repo || github.repository }}
151+ ref : ${{ inputs.target_ref || github.ref }}
120152
121153 - name : build
122154 uses : ./.github/actions/build
155+ with :
156+ repository : ${{ inputs.target_repo || github.repository }}
157+ ref : ${{ inputs.target_ref || github.ref }}
158+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
123159 - name : Prepare for tests
124160 run : touch profiling.md
125161 - name : Execute tests
@@ -146,8 +182,14 @@ jobs:
146182 uses : actions/checkout@v4
147183 with :
148184 submodules : recursive
185+ repository : ${{ inputs.target_repo || github.repository }}
186+ ref : ${{ inputs.target_ref || github.ref }}
149187 - name : build
150188 uses : ./.github/actions/build
189+ with :
190+ repository : ${{ inputs.target_repo || github.repository }}
191+ ref : ${{ inputs.target_ref || github.ref }}
192+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
151193 - name : Count tests
152194 id : count_tests
153195 run : |
@@ -279,8 +321,15 @@ jobs:
279321 steps :
280322 - name : Checkout repository
281323 uses : actions/checkout@v4
324+ with :
325+ repository : ${{ inputs.target_repo || github.repository }}
326+ ref : ${{ inputs.target_ref || github.ref }}
282327 - name : build
283328 uses : ./.github/actions/build
329+ with :
330+ repository : ${{ inputs.target_repo || github.repository }}
331+ ref : ${{ inputs.target_ref || github.ref }}
332+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
284333 - name : Use shared steps for live testing jobs
285334 uses : ./.github/actions/live-tests-shared
286335 with :
@@ -307,8 +356,15 @@ jobs:
307356 steps :
308357 - name : Checkout repository
309358 uses : actions/checkout@v4
359+ with :
360+ repository : ${{ inputs.target_repo || github.repository }}
361+ ref : ${{ inputs.target_ref || github.ref }}
310362 - name : build
311363 uses : ./.github/actions/build
364+ with :
365+ repository : ${{ inputs.target_repo || github.repository }}
366+ ref : ${{ inputs.target_ref || github.ref }}
367+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
312368 - name : Use shared steps for live testing jobs
313369 uses : ./.github/actions/live-tests-shared
314370 with :
0 commit comments