Skip to content

Commit 5d15481

Browse files
committed
use ARM runners for aarch64/armv7l
1 parent 176a4ab commit 5d15481

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
run: |
4242
import os
4343
import json
44+
runner = {
45+
"x86_64": "ubuntu-24.04",
46+
"i686": "ubuntu-24.04",
47+
"aarch64": "ubuntu-24.04-arm",
48+
"armv7l": "ubuntu-24.04-arm",
49+
"ppc64le": "ubuntu-24.04",
50+
"s390x": "ubuntu-24.04",
51+
"riscv64": "ubuntu-24.04",
52+
}
4453
reduced = [
4554
("almalinux:8", ("x86_64", "aarch64", "ppc64le", "s390x")),
4655
("almalinux:9", ("x86_64", "aarch64", "ppc64le", "s390x")),
@@ -53,15 +62,15 @@ jobs:
5362
("ubuntu:22.04", ("x86_64", "aarch64", "armv7l", "ppc64le", "s390x", "riscv64")),
5463
("ubuntu:24.04", ("x86_64", "aarch64", "armv7l", "ppc64le", "s390x", "riscv64")),
5564
]
56-
expanded = [{"distro": distro, "platform": platform} for distro, platforms in reduced for platform in platforms]
65+
expanded = [{"distro": distro, "platform": platform, "runner": runner[platform]} for distro, platforms in reduced for platform in platforms]
5766
print(json.dumps(expanded, indent=2))
5867
with open(os.environ["GITHUB_OUTPUT"], "at") as f:
5968
f.write(f"matrix={json.dumps(expanded)}")
6069
6170
distro_check:
6271
needs: distro_matrix
6372
name: ${{ matrix.distro }} ${{ matrix.platform }}
64-
runs-on: ubuntu-latest
73+
runs-on: ${{ matrix.runner }}
6574
strategy:
6675
fail-fast: false
6776
matrix:

0 commit comments

Comments
 (0)