Skip to content

Commit e244f81

Browse files
committed
fix install script
1 parent eff9e5a commit e244f81

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release-cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
os: ubuntu-latest
2020
name: linux-x86_64-musl
2121
- target: x86_64-unknown-linux-gnu
22-
os: ubuntu-20.04
22+
os: ubuntu-22.04
2323
name: linux-x86_64-gnu
2424
- target: aarch64-unknown-linux-musl
2525
os: ubuntu-latest
2626
name: linux-aarch64-musl
2727
- target: aarch64-unknown-linux-gnu
28-
os: ubuntu-20.04
28+
os: ubuntu-22.04
2929
name: linux-aarch64-gnu
3030
- target: aarch64-apple-darwin
3131
os: macos-latest

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ detect_platform() {
3838
libc="gnu"
3939

4040
# Check glibc version - if too old, fall back to musl (statically linked)
41-
# Our gnu binaries require GLIBC 2.31+
41+
# Our gnu binaries require GLIBC 2.35+ (built on Ubuntu 22.04)
4242
if command -v ldd >/dev/null 2>&1; then
4343
glibc_version=$(ldd --version 2>&1 | head -n1 | grep -oE '[0-9]+\.[0-9]+' | head -n1)
4444
if [ -n "$glibc_version" ]; then
45-
# Compare versions (2.31 minimum)
45+
# Compare versions (2.35 minimum)
4646
glibc_major=$(echo "$glibc_version" | cut -d. -f1)
4747
glibc_minor=$(echo "$glibc_version" | cut -d. -f2)
4848

49-
if [ "$glibc_major" -lt 2 ] || ([ "$glibc_major" -eq 2 ] && [ "$glibc_minor" -lt 31 ]); then
49+
if [ "$glibc_major" -lt 2 ] || ([ "$glibc_major" -eq 2 ] && [ "$glibc_minor" -lt 35 ]); then
5050
echo -e "${YELLOW}Note: Detected old glibc ${glibc_version}. Using statically-linked musl binary for compatibility.${NC}"
5151
libc="musl"
5252
fi

0 commit comments

Comments
 (0)