internal/rosa/hakurei: suffix variants
All checks were successful
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 2m38s
Test / Hakurei (push) Successful in 3m56s
Test / ShareFS (push) Successful in 4m4s
Test / Hpkg (push) Successful in 4m31s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 6m1s
Test / Flake checks (push) Successful in 1m46s
All checks were successful
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 2m38s
Test / Hakurei (push) Successful in 3m56s
Test / ShareFS (push) Successful in 4m4s
Test / Hpkg (push) Successful in 4m31s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 6m1s
Test / Flake checks (push) Successful in 1m46s
This makes log output more useful. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -4,12 +4,12 @@ import (
|
|||||||
"hakurei.app/internal/pkg"
|
"hakurei.app/internal/pkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t Toolchain) newHakurei(script string) pkg.Artifact {
|
func (t Toolchain) newHakurei(suffix, script string) pkg.Artifact {
|
||||||
const (
|
const (
|
||||||
version = "0.3.4"
|
version = "0.3.4"
|
||||||
checksum = "wVwSLo75a2OnH5tgxNWXR_YhiOJUFnYM_9-sJtxAEOKhcPE0BJafs6PU8o5JzyCT"
|
checksum = "wVwSLo75a2OnH5tgxNWXR_YhiOJUFnYM_9-sJtxAEOKhcPE0BJafs6PU8o5JzyCT"
|
||||||
)
|
)
|
||||||
return t.New("hakurei-"+version, 0, []pkg.Artifact{
|
return t.New("hakurei"+suffix+"-"+version, 0, []pkg.Artifact{
|
||||||
t.Load(Go),
|
t.Load(Go),
|
||||||
|
|
||||||
t.Load(Gzip),
|
t.Load(Gzip),
|
||||||
@@ -193,7 +193,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
artifactsF[Hakurei] = func(t Toolchain) pkg.Artifact {
|
artifactsF[Hakurei] = func(t Toolchain) pkg.Artifact {
|
||||||
return t.newHakurei(`
|
return t.newHakurei("", `
|
||||||
mkdir -p /work/system/libexec/hakurei/
|
mkdir -p /work/system/libexec/hakurei/
|
||||||
|
|
||||||
echo '# Building hakurei.'
|
echo '# Building hakurei.'
|
||||||
@@ -219,7 +219,7 @@ mkdir -p /work/system/bin/
|
|||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
artifactsF[HakureiDist] = func(t Toolchain) pkg.Artifact {
|
artifactsF[HakureiDist] = func(t Toolchain) pkg.Artifact {
|
||||||
return t.newHakurei(`
|
return t.newHakurei("-dist", `
|
||||||
export HAKUREI_VERSION
|
export HAKUREI_VERSION
|
||||||
DESTDIR=/work /usr/src/hakurei/dist/release.sh
|
DESTDIR=/work /usr/src/hakurei/dist/release.sh
|
||||||
`)
|
`)
|
||||||
|
|||||||
Reference in New Issue
Block a user