Skip to content

Commit bbcfb5f

Browse files
committed
ci: build native modules in pinned glibc-baseline container
1 parent d98a5e0 commit bbcfb5f

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
build-and-publish:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout
@@ -32,8 +32,17 @@ jobs:
3232
- name: Download Codex DMG
3333
run: curl -fL "https://persistent.oaistatic.com/codex-app-prod/Codex.dmg" -o Codex.dmg
3434

35-
- name: Setup app payload for packaging
36-
run: SKIP_APP_INSTALL=1 bash scripts/setup.sh ./Codex.dmg
35+
- name: Setup app payload for packaging (containerized glibc baseline)
36+
run: |
37+
set -euo pipefail
38+
docker run --rm \
39+
--user "$(id -u):$(id -g)" \
40+
-e HOME=/tmp \
41+
-e SKIP_APP_INSTALL=1 \
42+
-v "${PWD}:/work" \
43+
-w /work \
44+
node:20-bullseye \
45+
bash -lc 'node -v && npm -v && bash scripts/setup.sh ./Codex.dmg'
3746
3847
- name: Install Linux Codex CLI payload
3948
run: npm install --no-save @openai/codex@0.112.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ That new tag triggers the release workflow, which publishes new `.deb`, `.AppIma
100100

101101
- Packaging targets: **DEB** and **AppImage** only
102102
- Linux native module rebuild (`better-sqlite3`, `node-pty`)
103-
- Release CI builds on Ubuntu 20.04 baseline (glibc 2.31) for wider compatibility
103+
- Release CI rebuilds native modules in a pinned `node:20-bullseye` container (glibc 2.31 baseline) for wider compatibility
104104
- Auto-upload release artifacts (`.deb`, `.AppImage`) to GitHub Releases
105105
- Optional APT repo publish on release tag
106106

0 commit comments

Comments
 (0)