Skip to content

Commit 44a3c45

Browse files
committed
Add native CI for Aarch64
1 parent 75a4fb9 commit 44a3c45

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ env:
1717

1818
jobs:
1919
build:
20-
runs-on: ubuntu-24.04
20+
runs-on: ${{ matrix.os.image }}
2121

2222
strategy:
2323
fail-fast: false
2424
matrix:
25+
os:
26+
- { image: ubuntu-24.04, asset_name_suffix: "" }
27+
- { image: ubuntu-24.04-arm, asset_name_suffix: "-aarch64" }
2528
libgccjit_version:
26-
- { gcc: "gcc-15.deb" }
27-
- { gcc: "gcc-15-without-int128.deb" }
29+
- { gcc: "gcc-15" }
30+
- { gcc: "gcc-15-without-int128" }
2831
commands: [
2932
"--std-tests",
3033
# FIXME: re-enable asm tests when GCC can emit in the right syntax.
@@ -56,11 +59,11 @@ jobs:
5659
run: rustup component add rustfmt clippy
5760

5861
- name: Download artifact
59-
run: curl -LO https://github.com/rust-lang/gcc/releases/latest/download/${{ matrix.libgccjit_version.gcc }}
62+
run: curl -LO https://github.com/rust-lang/gcc/releases/latest/download/${{ matrix.libgccjit_version.gcc }}${{ matrix.os.asset_name_suffix }}.deb
6063

6164
- name: Setup path to libgccjit
6265
run: |
63-
sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
66+
sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}${{ matrix.os.asset_name_suffix }}.deb
6467
echo 'gcc-path = "/usr/lib/"' > config.toml
6568
6669
# Some run-make tests fail if we use our forked GCC because it doesn't

0 commit comments

Comments
 (0)