Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

ci(desktop): build the Linux release on Ubuntu 22.04

bubu-duducb9b52e2addf
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index bbf9c056d..e222aadd4 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -234,8 +234,11 @@ jobs:
matrix:
include:
# flutter build linux cannot cross-compile — each architecture needs its own host.
- - { runner: ubuntu-24.04, arch: x64 }
- - { runner: ubuntu-24.04-arm, arch: arm64 }
+ # Built on the OLDEST Ubuntu we support: the runner links the host's GLib/glibc, and a
+ # 24.04 build calls g_once_init_enter_pointer (GLib 2.80), which 22.04 (2.72) lacks —
+ # the app died at launch with "undefined symbol". A 22.04 build runs on 24.04 too.
+ - { runner: ubuntu-22.04, arch: x64 }
+ - { runner: ubuntu-22.04-arm, arch: arm64 }
env:
TARGET_ARCH: ${{ matrix.arch }}
METADATA_PATH: ${{ needs.version.outputs.scratch_prefix }}/linux-${{ matrix.arch }}.json
@@ -252,7 +255,7 @@ jobs:
clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
# Flutter publishes NO linux-arm64 SDK archive — releases_linux.json carries `x64` and
- # nothing else — so flutter-action has nothing to download on ubuntu-24.04-arm and fails
+ # nothing else — so flutter-action has nothing to download on ubuntu-22.04-arm and fails
# outright. Everything it would have unpacked does exist for arm64 (both
# linux-arm64/artifacts.zip and dart-sdk-linux-arm64.zip are served for this engine), so the
# SAME toolchain is reached by the other route: clone the SDK at the same tag and let
diff --git a/desktop/RELEASE.md b/desktop/RELEASE.md
index 971be75bb..345be9e45 100644
--- a/desktop/RELEASE.md
+++ b/desktop/RELEASE.md
@@ -438,8 +438,9 @@ running app back.
## Linux
`scripts/upload-desktop-linux.sh` publishes architecture-specific Linux ARM64 and x64 releases to the
-**same** `metadata.json` as macOS. `release-desktop.yml` runs it on both a `ubuntu-24.04` and a
-`ubuntu-24.04-arm` runner, so one `make release-desktop` covers every build — which is also why the six
+**same** `metadata.json` as macOS. `release-desktop.yml` runs it on both a `ubuntu-22.04` and a
+`ubuntu-22.04-arm` runner — the oldest Ubuntu supported, because the bundle links the build host's
+GLib and glibc and a 24.04 build will not start on 22.04 — so one `make release-desktop` covers every build — which is also why the six
`desktop-*` keys only stay on one version when the release goes through CI. Run by hand
(`make upload-desktop-linux ARCH=arm64`) it moves one key and leaves the others behind. `amd64` and
`x86_64` are accepted aliases for `x64`; `aarch64` is accepted as an alias for `arm64`.