Skip to content

Commit 6de34b5

Browse files
oklopferook37
andauthored
feat: arm64 runners real!!! (#17)
Co-authored-by: ook37 <oren+12345@taumoda.com>
1 parent a8e961f commit 6de34b5

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/pkg-nushell-bin.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ name: nushell-bin
66
workflow_dispatch: {}
77
jobs:
88
build:
9-
runs-on: ubuntu-latest
109
strategy:
1110
matrix:
1211
include:
1312
- distro: main
1413
architecture: amd64
14+
runner: ubuntu-latest
1515
- distro: main
1616
architecture: arm64
17+
runner: ubuntu-24.04-arm
18+
runs-on: ${{ matrix.runner }}
1719
steps:
1820
- name: Init
1921
uses: actions/checkout@v4

.github/workflows/pkg-pacstall.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ name: pacstall
66
workflow_dispatch: {}
77
jobs:
88
build:
9-
runs-on: ubuntu-latest
109
strategy:
1110
matrix:
1211
include:
1312
- distro: main
1413
architecture: all
14+
runner: ubuntu-latest
15+
runs-on: ${{ matrix.runner }}
1516
steps:
1617
- name: Init
1718
uses: actions/checkout@v4

manager.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ def gen_workflow(package_name, package_data):
114114
architectures = adjust_architectures(package_data["architectures"])
115115
overflow = package_data["maxOverflow"]
116116
matrix_combinations = [
117-
{"distro": distro, "architecture": arch}
117+
{
118+
"distro": distro,
119+
"architecture": arch,
120+
"runner": "ubuntu-24.04-arm" if arch == "arm64" else "ubuntu-latest"
121+
}
118122
for distro, arch in itertools.product(distros, architectures)
119123
]
120124

@@ -130,12 +134,12 @@ def gen_workflow(package_name, package_data):
130134
},
131135
"jobs": {
132136
"build": {
133-
"runs-on": "ubuntu-latest",
134137
"strategy": {
135138
"matrix": {
136139
"include": matrix_combinations
137140
}
138141
},
142+
"runs-on": "${{ matrix.runner }}",
139143
"steps": [
140144
{
141145
"name": "Init",

0 commit comments

Comments
 (0)