Phase 7: Build & Release Pipeline

Updated GitHub Actions workflows and build scripts:

GitHub Actions:
- Updated all workflow files to use llmx-rs instead of codex-rs
- Updated rust-release.yml to build llmx binary
- Updated rust-ci.yml for continuous integration
- Updated sdk.yml for TypeScript SDK workflows

Build Scripts:
- Renamed scripts/debug-codex.sh → scripts/debug-llmx.sh
- Updated debug script to use LLMX_RS_DIR and build llmx binary
- Updated scripts/stage_npm_packages.py with new package names
- Updated llmx-cli/scripts/build_npm_package.py:
  - Package choices: "codex" → "llmx", "codex-responses-api-proxy" → "llmx-responses-api-proxy"
  - Updated default package: codex → llmx
  - Updated component dependencies
- Updated llmx-cli/scripts/install_native_deps.py:
  - Binary component names: codex → llmx
  - Artifact prefixes and destinations updated
  - Variable names: CODEX_CLI_ROOT → LLMX_CLI_ROOT
  - Default components: ["codex", "rg"] → ["llmx", "rg"]

GitHub URLs:
- Updated all references: github.com/openai/codex → github.com/valknar/llmx

Files changed: 8 files (build scripts and workflows)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sebastian Krüger
2025-11-11 15:14:15 +01:00
parent 7be8b00b05
commit ef47ff60f9
8 changed files with 60 additions and 60 deletions

View File

@@ -33,13 +33,13 @@ jobs:
mapfile -t files < <(git diff --name-only --no-renames "$BASE_SHA"...HEAD)
else
# On push / manual runs, default to running everything
files=("codex-rs/force" ".github/force")
files=("llmx-rs/force" ".github/force")
fi
codex=false
workflows=false
for f in "${files[@]}"; do
[[ $f == codex-rs/* ]] && codex=true
[[ $f == llmx-rs/* ]] && codex=true
[[ $f == .github/* ]] && workflows=true
done
@@ -54,7 +54,7 @@ jobs:
if: ${{ needs.changed.outputs.codex == 'true' || needs.changed.outputs.workflows == 'true' || github.event_name == 'push' }}
defaults:
run:
working-directory: codex-rs
working-directory: llmx-rs
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.90
@@ -72,7 +72,7 @@ jobs:
if: ${{ needs.changed.outputs.codex == 'true' || needs.changed.outputs.workflows == 'true' || github.event_name == 'push' }}
defaults:
run:
working-directory: codex-rs
working-directory: llmx-rs
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.90
@@ -93,7 +93,7 @@ jobs:
if: ${{ needs.changed.outputs.codex == 'true' || needs.changed.outputs.workflows == 'true' || github.event_name == 'push' }}
defaults:
run:
working-directory: codex-rs
working-directory: llmx-rs
env:
# Speed up repeated builds across CI runs by caching compiled objects.
RUSTC_WRAPPER: sccache
@@ -164,7 +164,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('codex-rs/rust-toolchain.toml') }}
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('llmx-rs/rust-toolchain.toml') }}
restore-keys: |
cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-
@@ -271,7 +271,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('codex-rs/rust-toolchain.toml') }}
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('llmx-rs/rust-toolchain.toml') }}
- name: Save sccache cache (fallback)
if: always() && !cancelled() && env.SCCACHE_GHA_ENABLED != 'true'
@@ -324,7 +324,7 @@ jobs:
if: ${{ needs.changed.outputs.codex == 'true' || needs.changed.outputs.workflows == 'true' || github.event_name == 'push' }}
defaults:
run:
working-directory: codex-rs
working-directory: llmx-rs
env:
RUSTC_WRAPPER: sccache
CARGO_INCREMENTAL: "0"
@@ -365,7 +365,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('codex-rs/rust-toolchain.toml') }}
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('llmx-rs/rust-toolchain.toml') }}
restore-keys: |
cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-
@@ -421,7 +421,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('codex-rs/rust-toolchain.toml') }}
key: cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('llmx-rs/rust-toolchain.toml') }}
- name: Save sccache cache (fallback)
if: always() && !cancelled() && env.SCCACHE_GHA_ENABLED != 'true'

View File

@@ -1,4 +1,4 @@
# Release workflow for codex-rs.
# Release workflow for llmx-rs.
# To release, follow a workflow like:
# ```
# git tag -a rust-v0.1.0 -m "Release 0.1.0"
@@ -35,7 +35,7 @@ jobs:
# 2. Extract versions
tag_ver="${GITHUB_REF_NAME#rust-v}"
cargo_ver="$(grep -m1 '^version' codex-rs/Cargo.toml \
cargo_ver="$(grep -m1 '^version' llmx-rs/Cargo.toml \
| sed -E 's/version *= *"([^"]+)".*/\1/')"
# 3. Compare
@@ -52,7 +52,7 @@ jobs:
timeout-minutes: 30
defaults:
run:
working-directory: codex-rs
working-directory: llmx-rs
strategy:
fail-fast: false
@@ -88,7 +88,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
${{ github.workspace }}/codex-rs/target/
${{ github.workspace }}/llmx-rs/target/
key: cargo-${{ matrix.runner }}-${{ matrix.target }}-release-${{ hashFiles('**/Cargo.lock') }}
- if: ${{ matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl'}}
@@ -369,7 +369,7 @@ jobs:
# Upload the per-binary .zst files as well as the new .tar.gz
# equivalents we generated in the previous step.
path: |
codex-rs/dist/${{ matrix.target }}/*
llmx-rs/dist/${{ matrix.target }}/*
release:
needs: build

View File

@@ -28,7 +28,7 @@ jobs:
- name: build codex
run: cargo build --bin codex
working-directory: codex-rs
working-directory: llmx-rs
- name: Install dependencies
run: pnpm install --frozen-lockfile