Skip to content

Commit ea949a8

Browse files
zcgclaude
andcommitted
fix: inject date version into Cargo.toml before build
Update codex-rs/Cargo.toml version from 0.0.0 to date-based version (e.g., 2025.11.29) before cargo build, so the compiled binary reports the correct version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1025a88 commit ea949a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/88code-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ jobs:
8383
sudo apt-get update
8484
sudo apt-get install -y musl-tools pkg-config
8585
86+
- name: Set version in Cargo.toml
87+
shell: bash
88+
env:
89+
VERSION: ${{ needs.version.outputs.version }}
90+
run: |
91+
# Update workspace version in codex-rs/Cargo.toml
92+
sed -i.bak "s/^version = \"0.0.0\"/version = \"${VERSION}\"/" codex-rs/Cargo.toml
93+
echo "Updated Cargo.toml version to ${VERSION}"
94+
grep "^version" codex-rs/Cargo.toml
95+
8696
- name: Build
8797
working-directory: codex-rs
8898
run: cargo build --target ${{ matrix.target }} --release --bin codex

0 commit comments

Comments
 (0)