Skip to content

Commit ec2b284

Browse files
committed
Add aarch64 linux release
1 parent c4c29de commit ec2b284

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, macOS-latest, windows-latest]
13+
os: [ubuntu-latest, ubuntu-24.04-arm, macOS-latest, windows-latest]
1414
rust: [stable]
1515

1616
runs-on: ${{ matrix.os }}
@@ -27,6 +27,11 @@ jobs:
2727
run: |
2828
rustup target add x86_64-unknown-linux-musl
2929
sudo apt-get -qq install musl-tools
30+
- name: Setup MUSL aarch64
31+
if: matrix.os == 'ubuntu-24.04-arm'
32+
run: |
33+
rustup target add aarch64-unknown-linux-musl
34+
sudo apt-get -qq install musl-tools
3035
- name: Setup aarch64 mac
3136
if: matrix.os == 'macOS-latest'
3237
run: |
@@ -38,6 +43,9 @@ jobs:
3843
make release_lnx
3944
cargo install --locked cargo-rpm
4045
make release_rpm
46+
- name: Build for linux aarch64
47+
if: matrix.os == 'ubuntu-24.04-arm'
48+
run: make release_lnx_aarch64
4149
- name: Build for macOS
4250
if: matrix.os == 'macOS-latest'
4351
run: make release_mac

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ release_lnx:
2424
cargo build --locked --release --target=x86_64-unknown-linux-musl
2525
zip -j ${BIN_NAME}-v${VERSION}-x86_64-linux.zip target/x86_64-unknown-linux-musl/release/${BIN_NAME}
2626

27+
release_lnx_aarch64:
28+
cargo build --locked --release --target=_aarch64-unknown-linux-musl
29+
zip -j ${BIN_NAME}-v${VERSION}-aarch64-linux.zip target/aarch64-unknown-linux-musl/release/${BIN_NAME}
30+
2731
release_win:
2832
cargo build --locked --release --target=x86_64-pc-windows-msvc
2933
mv -v target/x86_64-pc-windows-msvc/release/${BIN_NAME}.exe ./

0 commit comments

Comments
 (0)