From d3fe2f9f536b81adb64ecf3e5b6582bd443b0796 Mon Sep 17 00:00:00 2001 From: bincxz <16399091+binaricat@users.noreply.github.com> Date: Mon, 16 Mar 2026 01:51:45 +0800 Subject: [PATCH] ci: pin Linux x64 build to ubuntu-22.04 for broader glibc compatibility ubuntu-latest (24.04) links native modules against glibc 2.39 which can cause dlopen failures on some distros. Pin to 22.04 (glibc 2.35) for wider compatibility across Linux distributions. Related: #264 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de8646a68..97114c92a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,13 +84,14 @@ jobs: release/*.blockmap if-no-files-found: ignore - # Linux x64 — builds directly on ubuntu-latest (no container). - # v1.0.39 used a debian:bullseye container which broke native module - # packaging (node-pty .node file missing from asar.unpacked). Reverted - # to the v1.0.38 approach. See #264. + # Linux x64 — pin to ubuntu-22.04 for broader glibc compatibility. + # ubuntu-latest (24.04) links native modules against glibc 2.39 which + # can cause dlopen failures on some distros. 22.04 uses glibc 2.35, + # compatible with most current Linux distributions including Arch. + # See #264. build-linux-x64: name: build-linux-x64 - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: VITE_SYNC_GITHUB_CLIENT_ID: ${{ secrets.VITE_SYNC_GITHUB_CLIENT_ID }} VITE_SYNC_GOOGLE_CLIENT_ID: ${{ secrets.VITE_SYNC_GOOGLE_CLIENT_ID }}