internal/rosa/package: migrate make
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 2m42s
Test / ShareFS (push) Successful in 3m49s
Test / Sandbox (race detector) (push) Successful in 5m29s
Test / Hakurei (race detector) (push) Successful in 6m31s
Test / Hakurei (push) Successful in 2m35s
Test / Flake checks (push) Successful in 1m23s

This also introduces the generic helper for unusual build scripts.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 19:28:18 +09:00
parent 6e8bfa6c4c
commit 548c96c7ec
5 changed files with 95 additions and 31 deletions
+17
View File
@@ -624,6 +624,23 @@ func (s *S) getFrame() azalea.Frame {
// high-level helpers
k("generic"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {
var attr GenericHelper
if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
k("mktemp"): &attr.EnterTemp,
k("build"): &attr.Build,
k("check"): &attr.Check,
k("install"): &attr.Install,
}); err != nil {
return
}
v = &attr
set = true
return
}},
k("make"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {