Skip to content

Commit 4e2b930

Browse files
authored
feat: make all deploy actions dry-run from regress (riscv-software-src#919)
This should let us make sure PRs fail in the merge queue if they fail to build a deployment target
1 parent 161b320 commit 4e2b930

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/merge.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ on:
66
merge_group:
77
types: [checks_requested]
88
workflow_dispatch:
9+
workflow_call:
10+
inputs:
11+
dry-run:
12+
required: true
13+
type: boolean
914
env:
1015
SINGULARITY: 1
1116
jobs:
1217
build-reuse-manifest:
18+
if: inputs.dry-run == false
1319
runs-on: ubuntu-latest
1420

1521
steps:
@@ -18,6 +24,7 @@ jobs:
1824
- name: run reuse
1925
run: ./bin/reuse spdx
2026
build-udb-api-doc:
27+
if: inputs.dry-run == false
2128
runs-on: ubuntu-latest
2229
steps:
2330
- name: Clone Github Repo Action
@@ -27,6 +34,7 @@ jobs:
2734
- name: Generate UDB API Docs
2835
run: ./do gen:udb:api_doc
2936
build-isa-explorer-csr:
37+
if: inputs.dry-run == false
3038
runs-on: ubuntu-latest
3139
steps:
3240
- name: Clone Github Repo Action
@@ -36,6 +44,7 @@ jobs:
3644
- name: Generate ISA Explorer CSR
3745
run: ./do gen:isa_explorer_browser_csr
3846
build-isa-explorer-ext:
47+
if: inputs.dry-run == false
3948
runs-on: ubuntu-latest
4049
steps:
4150
- name: Clone Github Repo Action
@@ -45,6 +54,7 @@ jobs:
4554
- name: Generate ISA Explorer Extension
4655
run: ./do gen:isa_explorer_browser_ext
4756
build-isa-explorer-inst:
57+
if: inputs.dry-run == false
4858
runs-on: ubuntu-latest
4959
steps:
5060
- name: Clone Github Repo Action
@@ -54,6 +64,7 @@ jobs:
5464
- name: Generate ISA Explorer Instructions
5565
run: ./do gen:isa_explorer_browser_insts
5666
build-isa-explorer-spreadsheet:
67+
if: inputs.dry-run == false
5768
runs-on: ubuntu-latest
5869
steps:
5970
- name: Clone Github Repo Action
@@ -63,6 +74,7 @@ jobs:
6374
- name: Generate ISA Explorer Spreadsheet
6475
run: ./do gen:isa_explorer_browser_spreadsheet
6576
build-html-isa-manual:
77+
if: inputs.dry-run == false
6678
runs-on: ubuntu-latest
6779
env:
6880
MANUAL_NAME: isa
@@ -75,6 +87,7 @@ jobs:
7587
- name: Generate HTML ISA manual
7688
run: ./do gen:html_manual
7789
build-html-cfg-isa-manual:
90+
if: inputs.dry-run == false
7891
runs-on: ubuntu-latest
7992
steps:
8093
- name: Clone Github Repo Action
@@ -84,6 +97,7 @@ jobs:
8497
- name: Generate HTML ISA manual for a config
8598
run: ./do gen:html[example_rv64_with_overlay]
8699
build-instruction-appendix:
100+
if: inputs.dry-run == false
87101
runs-on: ubuntu-latest
88102
steps:
89103
- name: Clone Github Repo Action
@@ -93,6 +107,7 @@ jobs:
93107
- name: Generate instruction appendix
94108
run: ./do gen:instruction_appendix
95109
build-rvi20-profile:
110+
if: inputs.dry-run == false
96111
runs-on: ubuntu-latest
97112
steps:
98113
- name: Clone Github Repo Action
@@ -102,6 +117,7 @@ jobs:
102117
- name: Generate RVI20
103118
run: ./do gen:profile_release_pdf[RVI20]
104119
build-rva20-profile:
120+
if: inputs.dry-run == false
105121
runs-on: ubuntu-latest
106122
steps:
107123
- name: Clone Github Repo Action
@@ -111,6 +127,7 @@ jobs:
111127
- name: Generate RVA20
112128
run: ./do gen:profile_release_pdf[RVA20]
113129
build-rva22-profile:
130+
if: inputs.dry-run == false
114131
runs-on: ubuntu-latest
115132
steps:
116133
- name: Clone Github Repo Action
@@ -120,6 +137,7 @@ jobs:
120137
- name: Generate RVA22
121138
run: ./do gen:profile_release_pdf[RVA22]
122139
build-rva23-profile:
140+
if: inputs.dry-run == false
123141
runs-on: ubuntu-latest
124142
steps:
125143
- name: Clone Github Repo Action
@@ -129,6 +147,7 @@ jobs:
129147
- name: Generate RVA23
130148
run: ./do gen:profile_release_pdf[RVA23]
131149
build-rvb23-profile:
150+
if: inputs.dry-run == false
132151
runs-on: ubuntu-latest
133152
steps:
134153
- name: Clone Github Repo Action
@@ -138,6 +157,7 @@ jobs:
138157
- name: Generate RVB23
139158
run: ./do gen:profile_release_pdf[RVB23]
140159
build-ac100-crd:
160+
if: inputs.dry-run == false
141161
runs-on: ubuntu-latest
142162
steps:
143163
- name: Clone Github Repo Action
@@ -147,6 +167,7 @@ jobs:
147167
- name: Generate AC100 CRD
148168
run: ./do gen:proc_crd_pdf[AC100]
149169
build-ac200-crd:
170+
if: inputs.dry-run == false
150171
runs-on: ubuntu-latest
151172
steps:
152173
- name: Clone Github Repo Action
@@ -156,6 +177,7 @@ jobs:
156177
- name: Generate AC200 CRD
157178
run: ./do gen:proc_crd_pdf[AC200]
158179
build-mc100-32-crd:
180+
if: inputs.dry-run == false
159181
runs-on: ubuntu-latest
160182
steps:
161183
- name: Clone Github Repo Action
@@ -165,6 +187,7 @@ jobs:
165187
- name: Generate MC100-32 CRD
166188
run: ./do gen:proc_crd_pdf[MC100-32]
167189
build-mc100-64-crd:
190+
if: inputs.dry-run == false
168191
runs-on: ubuntu-latest
169192
steps:
170193
- name: Clone Github Repo Action
@@ -174,6 +197,7 @@ jobs:
174197
- name: Generate MC100-64 CRD
175198
run: ./do gen:proc_crd_pdf[MC100-64]
176199
build-mc200-32-crd:
200+
if: inputs.dry-run == false
177201
runs-on: ubuntu-latest
178202
steps:
179203
- name: Clone Github Repo Action
@@ -183,6 +207,7 @@ jobs:
183207
- name: Generate MC200-32 CRD
184208
run: ./do gen:proc_crd_pdf[MC200-32]
185209
build-mc200-64-crd:
210+
if: inputs.dry-run == false
186211
runs-on: ubuntu-latest
187212
steps:
188213
- name: Clone Github Repo Action
@@ -192,6 +217,7 @@ jobs:
192217
- name: Generate MC200-64 CRD
193218
run: ./do gen:proc_crd_pdf[MC200-64]
194219
build-mc300-32-crd:
220+
if: inputs.dry-run == false
195221
runs-on: ubuntu-latest
196222
steps:
197223
- name: Clone Github Repo Action
@@ -201,6 +227,7 @@ jobs:
201227
- name: Generate MC300-32 CRD
202228
run: ./do gen:proc_crd_pdf[MC300-32]
203229
build-mc300-64-crd:
230+
if: inputs.dry-run == false
204231
runs-on: ubuntu-latest
205232
steps:
206233
- name: Clone Github Repo Action
@@ -210,6 +237,7 @@ jobs:
210237
- name: Generate MC300-64 CRD
211238
run: ./do gen:proc_crd_pdf[MC300-64]
212239
build-mc100-32-ctp:
240+
if: inputs.dry-run == false
213241
runs-on: ubuntu-latest
214242
steps:
215243
- name: Clone Github Repo Action

.github/workflows/regress.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,7 @@ jobs:
201201
uses: ./.github/actions/singularity-setup
202202
- name: Run cpp unit tests
203203
run: ./do test:cpp_hart CONFIG=rv64 JOBS=4
204+
call-deploy:
205+
uses: ./.github/workflows/merge.yml
206+
with:
207+
dry-run: true

0 commit comments

Comments
 (0)