internal/rosa: expose supported architectures
Test / Create distribution (push) Successful in 53s
Test / Sandbox (push) Successful in 2m57s
Test / ShareFS (push) Successful in 3m56s
Test / Hakurei (push) Successful in 4m3s
Test / Sandbox (race detector) (push) Successful in 5m33s
Test / Hakurei (race detector) (push) Successful in 6m41s
Test / Flake checks (push) Successful in 1m12s
Test / Create distribution (push) Successful in 53s
Test / Sandbox (push) Successful in 2m57s
Test / ShareFS (push) Successful in 3m56s
Test / Hakurei (push) Successful in 4m3s
Test / Sandbox (race detector) (push) Successful in 5m33s
Test / Hakurei (race detector) (push) Successful in 6m41s
Test / Flake checks (push) Successful in 1m12s
This information is useful to external tooling and makes a lot more sense in this package than cmd/mbf. This change also fixes non-native artifact resolution during clean. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+10
-4
@@ -883,13 +883,19 @@ func main() {
|
||||
func([]string) error {
|
||||
return cm.Do(func(cache *pkg.Cache) error {
|
||||
t := rosa.Native().Clone().Std()
|
||||
a := t.Append(nil, t.CollectAll()...)
|
||||
for arch := range pkg.Arch() {
|
||||
handles := t.CollectAll()
|
||||
|
||||
flags := t.Flags()
|
||||
a := t.Append(nil, handles...)
|
||||
for arch := range rosa.Arches(nil) {
|
||||
if arch == runtime.GOARCH {
|
||||
continue
|
||||
}
|
||||
t.DropCaches(arch, t.Flags())
|
||||
a = t.Append(a, t.CollectAll()...)
|
||||
|
||||
t.DropCaches(arch, rosa.OptLLVMNoLTO|rosa.OptSkipCheck)
|
||||
a = t.Append(a, handles...)
|
||||
t.DropCaches(arch, flags)
|
||||
a = t.Append(a, handles...)
|
||||
}
|
||||
|
||||
ids, checksums, err := cache.Clean(
|
||||
|
||||
Reference in New Issue
Block a user