Skip to content

Commit 28fbea3

Browse files
committed
ci: use system 7z in packaging container
1 parent 7e3e6d1 commit 28fbea3

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ 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: Build packaging container image
36+
run: |
37+
set -euo pipefail
38+
docker build -t codex-linux-build - <<'EOF'
39+
FROM node:20-bullseye
40+
RUN apt-get update \
41+
&& apt-get install -y --no-install-recommends p7zip-full \
42+
&& rm -rf /var/lib/apt/lists/*
43+
EOF
44+
3545
- name: Setup app payload for packaging (containerized glibc baseline)
3646
run: |
3747
set -euo pipefail
@@ -41,7 +51,7 @@ jobs:
4151
-e SKIP_APP_INSTALL=1 \
4252
-v "${PWD}:/work" \
4353
-w /work \
44-
node:20-bullseye \
54+
codex-linux-build \
4555
bash -lc 'node -v && npm -v && bash scripts/setup.sh ./Codex.dmg'
4656
4757
- name: Install Linux Codex CLI payload

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 rebuilds native modules in a pinned `node:20-bullseye` container (glibc 2.31 baseline) for wider compatibility
103+
- Release CI rebuilds native modules in a pinned `node:20-bullseye`-based container with system `7z` (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)