File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 85
85
86
86
BUILDKITE_PATH = pathlib .Path (__file__ ).parent .resolve ()
87
87
88
+
88
89
class BuildkiteStep :
89
90
"""
90
91
This builds a Buildkite step according to a json configuration and the
@@ -246,7 +247,9 @@ def build(self, input):
246
247
# Wrap command with '' to avoid escaping early by `ENTRYPOINT`
247
248
command = json .dumps (command )
248
249
# Overwrite image tag for riscv64 platform CI
249
- self .step_config ["plugins" ][0 ][f"docker#{ DOCKER_PLUGIN_VERSION } " ]["image" ] = f"rustvmm/dev:{ CONTAINER_VERSION_RISCV } "
250
+ self .step_config ["plugins" ][0 ][f"docker#{ DOCKER_PLUGIN_VERSION } " ][
251
+ "image"
252
+ ] = f"rustvmm/dev:{ CONTAINER_VERSION_RISCV } "
250
253
# Since we are using qemu-system inside a x86_64 container, we
251
254
# should set `platform` field to x86_64 and unset the hypervisor to
252
255
# be passed
@@ -346,13 +349,14 @@ def determine_allowlist(config_file):
346
349
"""Determine the what platforms should be enabled for this crate"""
347
350
348
351
try :
349
- with open (config_file , 'r' ) as file :
352
+ with open (config_file , "r" ) as file :
350
353
platforms = [line .strip () for line in file .readlines ()]
351
354
return platforms
352
355
except Exception as e :
353
356
# Fall back to default platform if anything goes wrong
354
357
return ["x86_64" , "aarch64" ]
355
358
359
+
356
360
def generate_pipeline (config_file , platform_allowlist ):
357
361
"""Generate the pipeline yaml file from a json configuration file."""
358
362
You can’t perform that action at this time.
0 commit comments