Skip to content

Commit 072f9e9

Browse files
committed
feat: add ARM64 Linux support
1 parent a2c19c1 commit 072f9e9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ jobs:
8181
target: x86_64-unknown-linux-musl
8282
artifact_name: yek
8383
asset_name: yek-x86_64-unknown-linux-musl.tar.gz
84+
- os: ubuntu-latest
85+
target: aarch64-unknown-linux-gnu
86+
artifact_name: yek
87+
asset_name: yek-aarch64-unknown-linux-gnu.tar.gz
88+
- os: ubuntu-latest
89+
target: aarch64-unknown-linux-musl
90+
artifact_name: yek
91+
asset_name: yek-aarch64-unknown-linux-musl.tar.gz
8492
- os: macos-latest
8593
target: x86_64-apple-darwin
8694
artifact_name: yek

scripts/install_yek.sh

+9
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ Linux_x86_64)
4848
TARGET="x86_64-unknown-linux-gnu"
4949
fi
5050
;;
51+
Linux_aarch64)
52+
# Check glibc version for ARM64
53+
GLIBC_VERSION=$(ldd --version 2>&1 | head -n1 | grep -oP 'GLIBC \K[\d.]+' || echo "")
54+
if [ -z "$GLIBC_VERSION" ] || [ "$(printf '%s\n' "2.31" "$GLIBC_VERSION" | sort -V | head -n1)" = "$GLIBC_VERSION" ]; then
55+
TARGET="aarch64-unknown-linux-musl"
56+
else
57+
TARGET="aarch64-unknown-linux-gnu"
58+
fi
59+
;;
5160
Darwin_x86_64)
5261
TARGET="x86_64-apple-darwin"
5362
;;

0 commit comments

Comments
 (0)