Skip to content

Commit 0d98e2c

Browse files
committed
refactor: buildkite: Use build_group_per_arch for shared build
Reduces code duplication slightly Signed-off-by: Patrick Roy <[email protected]>
1 parent c33bc6c commit 0d98e2c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.buildkite/common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ def __init__(self, with_build_step=True, **kwargs):
258258
# Build sharing
259259
if with_build_step:
260260
build_cmds, self.shared_build = shared_build()
261-
step_build = group("🏗️ Build", build_cmds, **self.per_arch)
262-
self.steps += [step_build, "wait"]
261+
self.build_group_per_arch("🏗️ Build", build_cmds, decorate=False)
262+
self.steps += ["wait"]
263263
else:
264264
self.shared_build = None
265265

@@ -311,8 +311,9 @@ def build_group_per_arch(self, *args, **kwargs):
311311
"""
312312
Build a group, parametrizing over the architectures only.
313313
"""
314+
decorate = kwargs.pop("decorate", True)
314315
combined = overlay_dict(self.per_arch, kwargs)
315-
return self.add_step(group(*args, **combined))
316+
return self.add_step(group(*args, **combined), decorate=decorate)
316317

317318
def to_dict(self):
318319
"""Render the pipeline as a dictionary."""

0 commit comments

Comments
 (0)