Skip to content

Commit 915e735

Browse files
committed
chore: use arm runners
1 parent 1510e04 commit 915e735

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
target: x86_64-unknown-linux-gnu
1717
- os: linux
1818
arch: aarch64
19-
runner: ubuntu-latest
19+
runner: ubuntu-24.04-arm
2020
target: aarch64-unknown-linux-gnu
2121
- os: windows
2222
arch: x86_64
@@ -44,18 +44,6 @@ jobs:
4444
with:
4545
targets: ${{ matrix.target }}
4646

47-
- name: Install cross-compilation tools (Linux ARM64)
48-
if: matrix.target == 'aarch64-unknown-linux-gnu'
49-
run: |
50-
sudo apt-get update
51-
sudo apt-get install -y gcc-aarch64-linux-gnu
52-
53-
- name: Configure cross-compilation (Linux ARM64)
54-
if: matrix.target == 'aarch64-unknown-linux-gnu'
55-
run: |
56-
echo "[target.aarch64-unknown-linux-gnu]" >> ~/.cargo/config.toml
57-
echo "linker = \"aarch64-linux-gnu-gcc\"" >> ~/.cargo/config.toml
58-
5947
- name: Cache cargo registry and build
6048
uses: actions/cache@v4
6149
with:

.github/workflows/tests.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
target: x86_64-unknown-linux-gnu
1717
- os: linux
1818
arch: aarch64
19-
runner: ubuntu-latest
19+
runner: ubuntu-24.04-arm
2020
target: aarch64-unknown-linux-gnu
2121
- os: windows
2222
arch: x86_64
@@ -44,18 +44,6 @@ jobs:
4444
with:
4545
targets: ${{ matrix.target }}
4646

47-
- name: Install cross-compilation tools (Linux ARM64)
48-
if: matrix.target == 'aarch64-unknown-linux-gnu'
49-
run: |
50-
sudo apt-get update
51-
sudo apt-get install -y gcc-aarch64-linux-gnu
52-
53-
- name: Configure cross-compilation (Linux ARM64)
54-
if: matrix.target == 'aarch64-unknown-linux-gnu'
55-
run: |
56-
echo "[target.aarch64-unknown-linux-gnu]" >> ~/.cargo/config.toml
57-
echo "linker = \"aarch64-linux-gnu-gcc\"" >> ~/.cargo/config.toml
58-
5947
- name: Cache cargo registry and build
6048
uses: actions/cache@v4
6149
with:

0 commit comments

Comments
 (0)