Skip to content

Commit c8e1eae

Browse files
authored
Merge pull request #66 from logannye/ci/aarch64-linux-release
ci: add aarch64-unknown-linux-musl release target + installer support
2 parents a986f35 + 19b2921 commit c8e1eae

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
include:
23-
# Fully static Linux binary (no glibc/bzip2/lzma runtime dependency):
23+
# Fully static Linux binaries (no glibc/bzip2/lzma runtime dependency):
2424
# the -sys crates build htslib/bzip2/lzma/zlib from bundled C source.
25+
# Each builds NATIVELY on its arch's runner — no cross-compiler needed.
2526
- target: x86_64-unknown-linux-musl
2627
os: ubuntu-latest
28+
- target: aarch64-unknown-linux-musl
29+
os: ubuntu-24.04-arm
2730
# macOS builds on Apple Silicon runners (macos-14, plentiful). The
2831
# aarch64 build is native; the x86_64 build is cross-compiled from arm64
2932
# (the SDK ships both arches; the cc crate adds `-arch x86_64`) so the
@@ -58,7 +61,9 @@ jobs:
5861
- name: Build (release, ${{ matrix.target }})
5962
env:
6063
# musl needs the musl C compiler for the bundled htslib/bzip2/lzma builds.
64+
# On each musl runner `musl-gcc` is that arch's native musl compiler.
6165
CC_x86_64_unknown_linux_musl: musl-gcc
66+
CC_aarch64_unknown_linux_musl: musl-gcc
6267
run: cargo build --release --target ${{ matrix.target }} --bin rosalind
6368

6469
- name: Stage the bundle

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ case "$os" in
2121
Linux)
2222
case "$arch" in
2323
x86_64 | amd64) target="x86_64-unknown-linux-musl" ;;
24-
*) die "unsupported Linux arch '$arch' (prebuilt: x86_64 only; build from source for others)" ;;
24+
aarch64 | arm64) target="aarch64-unknown-linux-musl" ;;
25+
*) die "unsupported Linux arch '$arch' (prebuilt: x86_64, aarch64; build from source for others)" ;;
2526
esac
2627
;;
2728
Darwin)

0 commit comments

Comments
 (0)