Skip to content

Commit 7022d31

Browse files
authored
enable new arch (#25)
1 parent b228ad6 commit 7022d31

File tree

5 files changed

+891
-387
lines changed

5 files changed

+891
-387
lines changed

.github/workflows/build.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
include:
1515
- { target: linux-64, os: ubuntu-latest }
1616
- { target: osx-arm64, os: macos-latest }
17+
- { target: linux-aarch64, os: ubuntu-24.04-arm }
1718
fail-fast: false
1819

1920
runs-on: ${{ matrix.os }}
@@ -29,7 +30,11 @@ jobs:
2930

3031
- name: Install magic
3132
run: |
32-
curl -ssL https://magic.modular.com | bash
33+
if [[ ${{ matrix.target }} == "linux-aarch64" ]]; then
34+
bash scripts/install_magic_aarch64.sh
35+
else
36+
curl -ssL https://magic.modular.com | bash
37+
fi
3338
3439
- name: Build package for target platform
3540
env:
@@ -42,7 +47,11 @@ jobs:
4247
4348
# Temporary method to fetch the rattler binary.
4449
RATTLER_BINARY="rattler-build-aarch64-apple-darwin"
45-
if [[ $TARGET_PLATFORM == "linux-64" ]]; then RATTLER_BINARY="rattler-build-x86_64-unknown-linux-musl"; fi
50+
if [[ $TARGET_PLATFORM == "linux-64" ]]; then
51+
RATTLER_BINARY="rattler-build-x86_64-unknown-linux-musl"
52+
elif [[ $TARGET_PLATFORM == "linux-aarch64" ]]; then
53+
RATTLER_BINARY="rattler-build-aarch64-unknown-linux-musl"
54+
fi
4655
curl -SL --progress-bar https://github.com/prefix-dev/rattler-build/releases/latest/download/${RATTLER_BINARY} -o rattler-build
4756
chmod +x rattler-build
4857
export PATH="$PATH:$(pwd)"

.github/workflows/test.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tests
1+
name: Run Tests
22

33
on:
44
pull_request:
@@ -10,11 +10,13 @@ permissions:
1010

1111
jobs:
1212
test:
13-
name: with ${{ matrix.os }}
1413
strategy:
15-
fail-fast: false
1614
matrix:
17-
os: ["ubuntu-latest", "macos-latest"]
15+
include:
16+
- { target: linux-64, os: ubuntu-latest }
17+
- { target: osx-arm64, os: macos-latest }
18+
- { target: linux-aarch64, os: ubuntu-24.04-arm }
19+
fail-fast: false
1820

1921
runs-on: ${{ matrix.os }}
2022
timeout-minutes: 5
@@ -29,7 +31,11 @@ jobs:
2931

3032
- name: Install magic
3133
run: |
32-
curl -ssL https://magic.modular.com | bash
34+
if [[ ${{ matrix.target }} == "linux-aarch64" ]]; then
35+
bash scripts/install_magic_aarch64.sh
36+
else
37+
curl -ssL https://magic.modular.com | bash
38+
fi
3339
3440
- name: Run tests
3541
run: |

0 commit comments

Comments
 (0)