Skip to content

Commit bc5b4d5

Browse files
authored
chore: use ubuntu-*-arm runners instead of custom ones (#330)
This allows contributors to test on GitHub hosted Linux ARM64 runners easily now that those runners are available for free for public repositories: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/
1 parent a12e3a2 commit bc5b4d5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/build-python-packages.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,12 @@ jobs:
5454
$os = $parts[0]
5555
$arch = if ($parts[1]) {$parts[1]} else {"x64"}
5656
switch -wildcard ($os) {
57-
"*ubuntu*" { $platform = $os.Replace("ubuntu","linux")}
57+
"*ubuntu*" { $platform = $os.Replace("ubuntu","linux"); if ($arch -eq "arm64" ) { $os = "${os}-arm" } }
5858
"*macos*" { $platform = 'darwin' }
5959
"*windows*" { $platform = 'win32' }
6060
}
6161
62-
if ($configuration -eq "ubuntu-22.04_arm64") {
63-
$os = "setup-actions-ubuntu-arm64-2-core"
64-
}
65-
elseif ($configuration -eq "ubuntu-24.04_arm64") {
66-
$os = "setup-actions-ubuntu24-arm64-2-core"
67-
}
68-
elseif ($configuration -eq "windows-2019_arm64") {
62+
if ($configuration -eq "windows-2019_arm64") {
6963
$os = "setup-actions-windows-arm64-4-core"
7064
}
7165

0 commit comments

Comments
 (0)