-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathworkflows.json
More file actions
242 lines (242 loc) · 6.35 KB
/
Copy pathworkflows.json
File metadata and controls
242 lines (242 loc) · 6.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{
"configs": [
{
"name": "bazel_default",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [
"--test_output=all"
],
"env": {}
},
{
"name": "bazel_default_notest",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled"
],
"env": {},
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
}
],
"builds": [
{
"name": "wildcard_build",
"use_config": "bazel_default_notest",
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "clippy",
"build_config": {
"name": "clippy_config",
"description": "Run clippy checks",
"build_type": "bazel",
"args": [
"--aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect",
"--output_groups=clippy_checks"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
},
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "ci_tests",
"build_config": {
"name": "ci_tests_config",
"description": "Execute CI tests (excluding hardware and heavyweight simulator tests)",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu",
"--test_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "earlgrey_verilator_tests",
"build_config": {
"name": "earlgrey_verilator_tests_config",
"description": "Run Earlgrey verilator-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+verilator,-nightly_test",
"--test_tag_filters=+verilator,-nightly_test",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/earlgrey/..."
]
},
{
"name": "caliptra_emulator_tests",
"build_config": {
"name": "caliptra_emulator_tests_config",
"description": "Run caliptra emulator-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+emulator,-disabled",
"--test_tag_filters=+emulator,-disabled",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/veer/..."
]
},
{
"name": "caliptra_fpga_build",
"build_config": {
"name": "caliptra_fpga_build_config",
"description": "Build (do not run) the Caliptra MCU fpga target image. Catches fpga cfg/build-wiring regressions without requiring lab hardware; actually running it needs a VCK190 board (see //target/veer/unittest_runner:fpga_test, tagged manual).",
"build_type": "bazel",
"args": [
"--keep_going",
"--config=k_veer",
"--//target/veer:target_type=fpga"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
},
"targets": [
"//target/veer/unittest_runner:fpga_test"
]
},
{
"name": "earlgrey_qemu_tests",
"build_config": {
"name": "earlgrey_qemu_tests_config",
"description": "Run Earlgrey QEMU-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+qemu",
"--test_tag_filters=+qemu",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/earlgrey/..."
]
},
{
"name": "ast10x0_qemu_tests",
"build_config": {
"name": "ast10x0_qemu_tests_config",
"description": "Run AST10x0 QEMU-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--config=virt_ast10x0",
"--test_tag_filters=-hardware,-do_not_run_test",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/ast10x0/..."
]
}
],
"tools": [
{
"name": "format",
"description": "Find and fix code formatting issues",
"use_config": "bazel_default",
"analyzer_friendly_args": [
"--check"
],
"target": "//:format"
},
{
"name": "presubmit_checks",
"description": "Run the presubmit checks",
"use_config": "bazel_default",
"target": "//presubmit:presubmit",
"type": "ANALYZER"
}
],
"groups": [
{
"name": "presubmit",
"description": "Quick presubmit for validating code changes locally",
"analyzers": [
"format",
"presubmit_checks"
],
"builds": [
"clippy"
]
},
{
"name": "default",
"description": "Common builds/configurations",
"builds": [
"wildcard_build"
]
},
{
"name": "ci",
"description": "Execute CI tests plus dedicated AST10x0, Earlgrey QEMU and Caliptra emulator coverage",
"builds": [
"ci_tests",
"ast10x0_qemu_tests",
"earlgrey_qemu_tests",
"caliptra_emulator_tests",
"caliptra_fpga_build"
]
},
{
"name": "upstream_pigweed",
"description": "Workflow for checking upstream pigweed compatibility",
"builds": [
"ci_tests",
"ast10x0_qemu_tests",
"caliptra_emulator_tests",
"earlgrey_verilator_tests"
]
}
]
}