aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/step.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/workflows/step.go')
-rw-r--r--internal/workflows/step.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/internal/workflows/step.go b/internal/workflows/step.go
index fc95fd69..d4e9c2d8 100644
--- a/internal/workflows/step.go
+++ b/internal/workflows/step.go
@@ -60,7 +60,7 @@ var download = Step{
With: []KV[any]{
{"name", "dist-${{ needs.dist.outputs.rev }}"},
- {"path", "result"},
+ {"path", "/tmp/dist"},
},
}
@@ -72,7 +72,7 @@ var _download = Step{
With: []KV[any]{
{"name", "dist-${{ needs.dist-race.outputs.rev }}-race"},
- {"path", "result"},
+ {"path", "/tmp/dist"},
},
}
@@ -81,8 +81,10 @@ var _download = Step{
var install = Step{
Name: "Install hakurei",
Run: "HAKUREI_VERSION=\"$(cat cmd/dist/VERSION)\" && " +
- "tar xf result/hakurei-$HAKUREI_VERSION*-amd64.tar.gz && " +
- "./hakurei-$HAKUREI_VERSION*-amd64/install.sh && " +
+ "tar -C /tmp/dist " +
+ "-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",
}
@@ -91,8 +93,7 @@ var install = Step{
func newTestsuite(name, prefix string) Step {
return Step{
Name: "Compile and run test suite",
- Run: prefix + "rm -rf result && " +
- "go run -tags=testsuite ./cmd/" + name,
+ Run: prefix + "go run -tags=testsuite ./cmd/" + name,
}
}