From 71e975d08a1f28284e005dadc85a541ebd04fee5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 30 Sep 2026 19:20:03 +0900 Subject: internal/workflows: request dist via cmd/mbf This replaces the nix-based dist step. Signed-off-by: Ophestra --- internal/workflows/step.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'internal/workflows/step.go') diff --git a/internal/workflows/step.go b/internal/workflows/step.go index d09e047e..ff5b7931 100644 --- a/internal/workflows/step.go +++ b/internal/workflows/step.go @@ -2,9 +2,26 @@ package main +// fixup is a step to work around a Podman regression introduced by a bad +// container escape mitigation. +var fixup = Step{ + Name: "Fix container filesystem", + Run: "rm /var/run && ln -sf ../run /var", +} + // checkout is the standard actions/checkout step. var checkout = Step{Name: "Checkout", Uses: "actions/checkout@v4"} +// clone is a simple actions/checkout replacement. +var clone = Step{ + Name: "Checkout", + Run: "git clone " + + "-c advice.detachedHead=0 " + + "--rev='${{ github.sha }}' " + + "'${{ github.server_url }}/${{ github.repository }}.git' . && " + + "git fetch --tags", +} + // newUploadArtifact returns an actions/upload-artifact step uploading // everything in the result directory as the specified name. func newUploadArtifact(display, name string) Step { @@ -21,6 +38,17 @@ func newUploadArtifact(display, name string) Step { } } +// newCIRequest returns a step for requesting a mbf CI task. +func newCIRequest(display, name, id string) Step { + return Step{ + Name: "Request " + display, + ID: id, + Run: "export HAKUREI_VERSION=\"$(git describe --dirty)\" && " + + "/rosa/bin/mbf ci " + name + " . \"$HAKUREI_VERSION\" && " + + "echo \"version=$HAKUREI_VERSION\" >> \"$GITHUB_OUTPUT\"", + } +} + // newNixOSTest returns a step for running the named NixOS test. func newNixOSTest(name string) Step { return Step{ -- cgit v1.3.1