From 51a7792aac28f32121dd239b447ea348879a308b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Fri, 26 Dec 2025 14:45:56 +0100 Subject: [PATCH] ci: get supported arches from pmbootstrap instead of hard-coding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit supported_binary reads the pmaports.cfg file, and if that is changed in the future, we can be pretty sure we will get what we expect. Fixes #4195 Signed-off-by: Pablo Correa Gómez Part-of: --- .ci/lib/generate_build_jobs.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.ci/lib/generate_build_jobs.py b/.ci/lib/generate_build_jobs.py index 602673697..4ec9c491e 100755 --- a/.ci/lib/generate_build_jobs.py +++ b/.ci/lib/generate_build_jobs.py @@ -142,21 +142,12 @@ class Device: class ArchTagSet(set): - supported_arches = [ - Arch.x86_64, - Arch.x86, - Arch.aarch64, - Arch.armv7, - Arch.armhf, - Arch.riscv64, - Arch.ppc64le, - ] - def update(self, iterable): + supported_arches = Arch.supported_binary() # This ignores things like !armv7, that could be a follow-up optimization if 'noarch' in iterable or 'all' in iterable: - iterable = [arch for arch in self.supported_arches] - super().update([Arch(arch) for arch in iterable if Arch(arch) in self.supported_arches]) + iterable = [arch for arch in supported_arches] + super().update([Arch(arch) for arch in iterable if Arch(arch) in supported_arches]) if __name__ == "__main__":