Skip to content

Commit 1391889

Browse files
authored
Override linux aarch64 python version
2 parents 7031498 + 469adc5 commit 1391889

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/scripts/extract_matrix.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"windows-latest": ["windows", "amd64"]
4444
}
4545

46+
# Override unavailable Python versions for some OS/Arch combinations
47+
PYTHON_VERSIONS = {
48+
"ubuntu-24.04-arm": "3.12.8",
49+
}
50+
4651

4752
@dataclass
4853
class Artifact:
@@ -95,6 +100,9 @@ def python_version(self) -> str | None:
95100
del self.env["MX_PYTHON"]
96101
if "MX_PYTHON_VERSION" in self.env:
97102
del self.env["MX_PYTHON_VERSION"]
103+
104+
if self.runs_on in PYTHON_VERSIONS:
105+
python_version = PYTHON_VERSIONS[self.runs_on]
98106
return python_version
99107

100108
@cached_property

ci/python-gate.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@
9191
MUSL_TOOLCHAIN: {name: "musl-toolchain", version: "1.0", platformspecific: true},
9292
PYTHON3_HOME: {name: "python3", version: "3.12.8", platformspecific: true},
9393
},
94-
aarch64: {
95-
PYTHON3_HOME: {name: "python3", version: "3.12.8", platformspecific: true},
96-
},
94+
aarch64: {},
9795
},
9896
darwin: {
9997
common: {},

0 commit comments

Comments
 (0)