Skip to content
Snippets Groups Projects
Verified Commit dbb8411e authored by achill (fossdd)'s avatar achill (fossdd) :gay_pride_flag:
Browse files

pipeline: avoid duplicate key-value entries

Doesn't require to keep in sync all architectures supported by
Alpine, like ppc64le or loongarch64.
parent e670835a
No related branches found
No related tags found
1 merge request!59pipeline: support all Alpine architectures
Pipeline #210153 passed
......@@ -10,17 +10,14 @@ def get_arch_alpine_native() -> str:
machine = platform.machine()
mapping = {
"aarch64": "aarch64",
"arm64": "aarch64",
"armv6l": "armhf",
"armv7l": "armv7",
"i686": "x86",
"riscv64": "riscv64",
"x86_64": "x86_64",
}
if machine in mapping:
return mapping[machine]
raise ValueError(f"Cannot map platform.machine '{machine}' to the right Alpine Linux arch")
return machine
def get_build_job(api_pipeline_jobs: dict) -> dict | None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment