Skip to content

Commit a0537a7

Browse files
committed
Use native ARM runner instead of cross-compiling
1 parent 6a85dbe commit a0537a7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- target: x86_64-unknown-linux-musl
2020
os: ubuntu-latest
2121
- target: aarch64-unknown-linux-musl
22-
os: ubuntu-latest
22+
os: ubuntu-24.04-arm
2323

2424
steps:
2525
- uses: actions/checkout@v4
@@ -33,14 +33,6 @@ jobs:
3333
sudo apt-get update
3434
sudo apt-get install -y musl-tools
3535
36-
- name: Install musl cross-compiler
37-
if: matrix.target == 'aarch64-unknown-linux-musl'
38-
run: |
39-
curl -sSL https://musl.cc/aarch64-linux-musl-cross.tgz | tar xzf - -C /opt
40-
echo "/opt/aarch64-linux-musl-cross/bin" >> "$GITHUB_PATH"
41-
echo "CC_aarch64_unknown_linux_musl=/opt/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc" >> "$GITHUB_ENV"
42-
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/opt/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc" >> "$GITHUB_ENV"
43-
4436
- name: Build
4537
run: cargo build --release --locked --target ${{ matrix.target }}
4638

0 commit comments

Comments
 (0)