Skip to content

Commit c34095b

Browse files
committed
ci(release): pin Bun to 1.2.21 to fix ldd failure on ubuntu-22.04
The claude sidecar (new in v0.2.0) is built with `bun build --compile`. Bun 1.3+ produces standalone binaries that require glibc 2.36+ symbols. The release runner is ubuntu-22.04 (glibc 2.35), so when linuxdeploy runs ldd on the staged sidecar binary in AppDir/usr/bin/, the dynamic loader fails on missing symbols, ldd exits 1, and linuxdeploy aborts with std::runtime_error. Surfaced (only with --verbose) as: [gtk/stderr] terminate called after throwing an instance of 'std::runtime_error' [gtk/stderr] what(): Failed to run ldd: exited with code 1 ERROR: Failed to run plugin: gtk (exit code: 134) Bun 1.2.21 targets glibc 2.31+, which the runner satisfies.
1 parent 86e66e6 commit c34095b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,19 @@ jobs:
7777
# build --compile`. Installed here so the stage step below can
7878
# produce the per-target sidecar binary before tauri-action
7979
# picks it up via `externalBin`.
80+
#
81+
# Pinned to 1.2.21 (not `latest`) because Bun 1.3+ compiles its
82+
# standalone binaries against glibc 2.36+ symbols. The Linux
83+
# release runner is ubuntu-22.04 (glibc 2.35), and linuxdeploy's
84+
# AppImage step runs `ldd` on every executable in usr/bin/ — which
85+
# invokes the dynamic loader. If the binary needs glibc symbols
86+
# the loader can't resolve, ldd exits 1 and linuxdeploy aborts
87+
# with `Failed to run ldd: exited with code 1`. Surfaced as the
88+
# opaque "failed to run linuxdeploy" without --verbose. Bun 1.2.21
89+
# targets glibc 2.31+, which the runner satisfies.
8090
uses: oven-sh/setup-bun@v2
8191
with:
82-
bun-version: latest
92+
bun-version: "1.2.21"
8393

8494
- name: Stage claude-agent sidecar binary
8595
# Mirrors the agent-browser stage below: explicit pre-stage

0 commit comments

Comments
 (0)