internal/rosa: lazy initialise all artifacts
Some checks failed
Test / Create distribution (push) Failing after 43s
Test / ShareFS (push) Failing after 49s
Test / Sandbox (push) Failing after 1m5s
Test / Sandbox (race detector) (push) Failing after 1m5s
Test / Hakurei (push) Failing after 1m18s
Test / Hakurei (race detector) (push) Failing after 1m28s
Test / Hpkg (push) Failing after 1m29s
Test / Flake checks (push) Has been skipped
Some checks failed
Test / Create distribution (push) Failing after 43s
Test / ShareFS (push) Failing after 49s
Test / Sandbox (push) Failing after 1m5s
Test / Sandbox (race detector) (push) Failing after 1m5s
Test / Hakurei (push) Failing after 1m18s
Test / Hakurei (race detector) (push) Failing after 1m28s
Test / Hpkg (push) Failing after 1m29s
Test / Flake checks (push) Has been skipped
This improves performance, though not as drastically as lazy initialising llvm. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -2,14 +2,13 @@ package rosa
|
||||
|
||||
import "hakurei.app/internal/pkg"
|
||||
|
||||
// NewZlib returns a new [pkg.Artifact] containing an installation of zlib.
|
||||
func (t Toolchain) NewZlib() pkg.Artifact {
|
||||
func (t Toolchain) newZlib() pkg.Artifact {
|
||||
const (
|
||||
version = "1.3.1"
|
||||
checksum = "E-eIpNzE8oJ5DsqH4UuA_0GDKuQF5csqI8ooDx2w7Vx-woJ2mb-YtSbEyIMN44mH"
|
||||
)
|
||||
return t.New("zlib-"+version, []pkg.Artifact{
|
||||
t.NewMake(),
|
||||
t.Load(Make),
|
||||
}, nil, nil, `
|
||||
cd "$(mktemp -d)"
|
||||
CC="clang -fPIC" /usr/src/zlib/configure \
|
||||
@@ -23,3 +22,4 @@ make DESTDIR=/work install
|
||||
pkg.TarGzip,
|
||||
)))
|
||||
}
|
||||
func init() { artifactsF[Zlib] = Toolchain.newZlib }
|
||||
|
||||
Reference in New Issue
Block a user