diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-07 19:06:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-07 19:06:58 +0900 |
| commit | eb25807affba15397851e08f2e848245c016ce7d (patch) | |
| tree | 56ed3e6b4d149b9173033d76a7c010eb033c8eed /internal/workflows/step.go | |
| parent | bf52aed01a451dc622201bdf6925e537da8c1140 (diff) | |
internal/workflows: use custom runner image
This avoids having to reinstall packages on every run.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/workflows/step.go')
| -rw-r--r-- | internal/workflows/step.go | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/internal/workflows/step.go b/internal/workflows/step.go index d4e9c2d8..b53671b6 100644 --- a/internal/workflows/step.go +++ b/internal/workflows/step.go @@ -2,28 +2,9 @@ package main -import "strings" - -// 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"} -// toolchain is a step for setting up the Go toolchain. -var toolchain = Step{ - Name: "Set up Go toolchain", - Uses: "actions/setup-go@v6", - - With: []KV[any]{ - {"go-version-file", "go.mod"}, - }, -} - // newUploadArtifact returns an actions/upload-artifact step uploading // everything in the result directory as the specified name. func newUploadArtifact(display, name string) Step { @@ -85,8 +66,7 @@ var install = Step{ "-xf /tmp/dist/hakurei-$HAKUREI_VERSION*-amd64.tar.gz && " + "/tmp/dist/hakurei-$HAKUREI_VERSION*-amd64/install.sh && " + "rm -rf /tmp/dist && " + - "sudo -u ubuntu hakurei version && " + - "mkdir /var/empty", + "sudo -u ubuntu hakurei version", } // newTestsuite returns a step for running an integration test suite. @@ -97,21 +77,6 @@ func newTestsuite(name, prefix string) Step { } } -// newPackages returns a job for installing the specified packages with -// best-effort caching. Package names must not contain spaces. -func newPackages(rev int, repos []string, packages ...string) Step { - return Step{ - Name: "Install packages", - Uses: "awalsh128/cache-apt-pkgs-action@v1", - With: []KV[any]{ - {"add-repository", strings.Join(repos, " ")}, - {"packages", strings.Join(packages, " ")}, - {"version", rev}, - {"execute_install_scripts", true}, - }, - } -} - // newNixOSTest returns a step for running the named NixOS test. func newNixOSTest(name string) Step { return Step{ |
