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 }}
@@ -18,18 +36,20 @@ permissions:
1836
1937jobs :
2038 Prepare :
21- runs-on : self-hosted
39+ runs-on : ubuntu-latest
2240 steps :
2341 - name : Checkout repository with submodules
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
2949 with :
30- cache_id : ${{ secrets.NIX_CACHE_GCP_ID }}
31- nar_secret : ${{ secrets.NIX_CACHE_NAR_SECRET }}
32- gcp_secret : ${{ secrets.NIX_CACHE_GCP_SECRET }}
50+ repository : ${{ inputs.target_repo || github.repository }}
51+ ref : ${{ inputs.target_ref || github.ref }}
52+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
3353
3454 Lint-Format-and-TypoCheck :
3555 strategy :
4161 steps :
4262 - name : Checkout Repository
4363 uses : actions/checkout@v4
64+ with :
65+ repository : ${{ inputs.target_repo || github.repository }}
66+ ref : ${{ inputs.target_ref || github.ref }}
4467 - name : Setup Node.JS ${{ matrix.node }}
4568 uses : actions/setup-node@v4
4669 with :
@@ -85,16 +108,18 @@ jobs:
85108
86109 Upload-bindings :
87110 name : upload bindings artifact
88- needs : [Prepare]
89- runs-on : self-hosted
111+ if : ${{ inputs.proof_systems_commit == '' }}
112+ runs-on : ubuntu-latest
90113 steps :
91114 - uses : actions/checkout@v4
92115 with :
93116 submodules : recursive
117+ repository : ${{ inputs.target_repo || github.repository }}
118+ ref : ${{ inputs.target_ref || github.ref }}
94119 - name : upload
95120 uses : ./.github/actions/upload
96121 with :
97- cache_id : ${{ secrets.NIX_CACHE_ID }}
122+ cache_id : ${{ secrets.NIX_CACHE_GCP_ID }}
98123 nar_secret : ${{ secrets.NIX_CACHE_NAR_SECRET }}
99124 gcp_secret : ${{ secrets.NIX_CACHE_GCP_SECRET }}
100125
@@ -121,13 +146,15 @@ jobs:
121146 uses : actions/checkout@v4
122147 with :
123148 submodules : recursive
149+ repository : ${{ inputs.target_repo || github.repository }}
150+ ref : ${{ inputs.target_ref || github.ref }}
124151
125152 - name : build
126153 uses : ./.github/actions/build
127154 with :
128- cache_id : ${{ secrets.NIX_CACHE_ID }}
129- nar_secret : ${{ secrets.NIX_CACHE_NAR_SECRET }}
130- gcp_secret : ${{ secrets.NIX_CACHE_GCP_SECRET }}
155+ repository : ${{ inputs.target_repo || github.repository }}
156+ ref : ${{ inputs.target_ref || github.ref }}
157+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
131158 - name : Prepare for tests
132159 run : touch profiling.md
133160 - name : Execute tests
@@ -154,12 +181,14 @@ jobs:
154181 uses : actions/checkout@v4
155182 with :
156183 submodules : recursive
184+ repository : ${{ inputs.target_repo || github.repository }}
185+ ref : ${{ inputs.target_ref || github.ref }}
157186 - name : build
158187 uses : ./.github/actions/build
159188 with :
160- cache_id : ${{ secrets.NIX_CACHE_ID }}
161- nar_secret : ${{ secrets.NIX_CACHE_NAR_SECRET }}
162- gcp_secret : ${{ secrets.NIX_CACHE_GCP_SECRET }}
189+ repository : ${{ inputs.target_repo || github.repository }}
190+ ref : ${{ inputs.target_ref || github.ref }}
191+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
163192 - name : Count tests
164193 id : count_tests
165194 run : |
@@ -291,12 +320,15 @@ jobs:
291320 steps :
292321 - name : Checkout repository
293322 uses : actions/checkout@v4
323+ with :
324+ repository : ${{ inputs.target_repo || github.repository }}
325+ ref : ${{ inputs.target_ref || github.ref }}
294326 - name : build
295327 uses : ./.github/actions/build
296328 with :
297- cache_id : ${{ secrets.NIX_CACHE_ID }}
298- nar_secret : ${{ secrets.NIX_CACHE_NAR_SECRET }}
299- gcp_secret : ${{ secrets.NIX_CACHE_GCP_SECRET }}
329+ repository : ${{ inputs.target_repo || github.repository }}
330+ ref : ${{ inputs.target_ref || github.ref }}
331+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
300332 - name : Use shared steps for live testing jobs
301333 uses : ./.github/actions/live-tests-shared
302334 with :
@@ -323,12 +355,15 @@ jobs:
323355 steps :
324356 - name : Checkout repository
325357 uses : actions/checkout@v4
358+ with :
359+ repository : ${{ inputs.target_repo || github.repository }}
360+ ref : ${{ inputs.target_ref || github.ref }}
326361 - name : build
327362 uses : ./.github/actions/build
328363 with :
329- cache_id : ${{ secrets.NIX_CACHE_ID }}
330- nar_secret : ${{ secrets.NIX_CACHE_NAR_SECRET }}
331- gcp_secret : ${{ secrets.NIX_CACHE_GCP_SECRET }}
364+ repository : ${{ inputs.target_repo || github.repository }}
365+ ref : ${{ inputs.target_ref || github.ref }}
366+ proof_systems_commit : ${{ inputs.proof_systems_commit }}
332367 - name : Use shared steps for live testing jobs
333368 uses : ./.github/actions/live-tests-shared
334369 with :
0 commit comments