Skip to content

Commit

Permalink
feat: arm64 runners real!!! (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Jan 17, 2025
1 parent a8e961f commit 6de34b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pkg-nushell-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ name: nushell-bin
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- distro: main
architecture: amd64
runner: ubuntu-latest
- distro: main
architecture: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
steps:
- name: Init
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pkg-pacstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ name: pacstall
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- distro: main
architecture: all
runner: ubuntu-latest
runs-on: ${{ matrix.runner }}
steps:
- name: Init
uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ def gen_workflow(package_name, package_data):
architectures = adjust_architectures(package_data["architectures"])
overflow = package_data["maxOverflow"]
matrix_combinations = [
{"distro": distro, "architecture": arch}
{
"distro": distro,
"architecture": arch,
"runner": "ubuntu-24.04-arm" if arch == "arm64" else "ubuntu-latest"
}
for distro, arch in itertools.product(distros, architectures)
]

Expand All @@ -130,12 +134,12 @@ def gen_workflow(package_name, package_data):
},
"jobs": {
"build": {
"runs-on": "ubuntu-latest",
"strategy": {
"matrix": {
"include": matrix_combinations
}
},
"runs-on": "${{ matrix.runner }}",
"steps": [
{
"name": "Init",
Expand Down

0 comments on commit 6de34b5

Please sign in to comment.