Michael Bolin
b571249867
chore: script to create a Rust release ( #759 )
...
For now, keep things simple such that we never update the `version` in
the `Cargo.toml` for the workspace root on the `main` branch. Instead,
create a new branch for a release, push one commit that updates the
`version`, and then tag that branch to kick off a release.
To test, I ran this script and created this release job:
https://github.com/openai/codex/actions/runs/14762580641
codex-rs-72a4c38e41bc64f5a7c8c73d52f45784cb6b7137-1-rust-v0.0.2504301219
2025-04-30 12:39:03 -07:00
Michael Bolin
02c180f6c3
merge commit for archive created by Sapling
2025-04-30 12:16:11 -07:00
Michael Bolin
4ae8f2ba46
chore: script to create a Rust release
2025-04-30 12:16:04 -07:00
Michael Bolin
cc74a71a69
Merge 8dff8943ee into sapling-pr-archive-bolinfest
2025-04-30 12:10:54 -07:00
Michael Bolin
8dff8943ee
chore: script to create a Rust release
2025-04-30 12:10:46 -07:00
Michael Bolin
24278347b7
fix: remove codex-repl from GitHub workflows ( #760 )
...
I missed this when doing https://github.com/openai/codex/pull/754 .
2025-04-30 12:10:24 -07:00
Michael Bolin
95ef46c6f8
Merge 549341afaf into sapling-pr-archive-bolinfest
2025-04-30 12:09:47 -07:00
Michael Bolin
549341afaf
fix: remove codex-repl from GitHub workflows
2025-04-30 12:09:40 -07:00
Michael Bolin
7f18fd3f56
Merge 4e7f007e68 into sapling-pr-archive-bolinfest
2025-04-30 12:08:21 -07:00
Michael Bolin
4e7f007e68
chore: script to create a Rust release
2025-04-30 12:08:11 -07:00
Michael Bolin
8f7a54501c
chore: Rust release, set prerelease:false and version=0.0.2504301132 ( #755 )
...
The generated DotSlash file has URLs that refer to
`https://github.com/openai/codex/releases/ `, so let's set
`prerelease:false` (but keep `draft:true` for now) so those URLs should
work.
Also updated `version` in Cargo workspace so I will kick off a build
once this lands.
rust-v0.0.2504301132
2025-04-30 11:53:03 -07:00
Michael Bolin
30c8095d6f
merge commit for archive created by Sapling
2025-04-30 11:50:25 -07:00
Michael Bolin
789ecab603
chore: make build process a single script to run
2025-04-30 11:50:18 -07:00
Michael Bolin
d95603f2de
Merge 8eb5e174db into sapling-pr-archive-bolinfest
2025-04-30 11:48:13 -07:00
Michael Bolin
8eb5e174db
chore: make build process a single script to run
2025-04-30 11:48:03 -07:00
Michael Bolin
eb9d8b3514
Merge 5f5871714e into sapling-pr-archive-bolinfest
2025-04-30 11:37:35 -07:00
Michael Bolin
5f5871714e
chore: Rust release, set prerelease:false and version=0.0.2504301132
2025-04-30 11:37:27 -07:00
Michael Bolin
2f1d96e77d
fix: remove errant eslint-disable so pnpm run lint passes again ( #756 )
...
My bad: introduced in https://github.com/openai/codex/pull/753 .
2025-04-30 11:37:11 -07:00
Michael Bolin
51e669f01e
Merge b6f4935f0c into sapling-pr-archive-bolinfest
2025-04-30 11:36:48 -07:00
Michael Bolin
b6f4935f0c
fix: remove errant eslint-disable so pnpm run lint passes again
2025-04-30 11:36:41 -07:00
Michael Bolin
09ccbabd82
Merge 4bd790bbac into sapling-pr-archive-bolinfest
2025-04-30 11:33:12 -07:00
Michael Bolin
4bd790bbac
chore: Rust release, set prerelease:false and version=0.0.2504301132
2025-04-30 11:33:04 -07:00
Michael Bolin
84aaefa102
fix: read version from package.json instead of modifying session.ts ( #753 )
...
I am working to simplify the build process. As a first step, update
`session.ts` so it reads the `version` from `package.json` at runtime so
we no longer have to modify it during the build process. I want to get
to a place where the build looks like:
```
cd codex-cli
pnpm i
pnpm build
RELEASE_DIR=$(mktemp -d)
cp -r bin "$RELEASE_DIR/bin"
cp -r dist "$RELEASE_DIR/dist"
cp -r src "$RELEASE_DIR/src" # important if we want sourcemaps to continue to work
cp ../README.md "$RELEASE_DIR"
VERSION=$(printf '0.1.%d' $(date +%y%m%d%H%M))
jq --arg version "$VERSION" '.version = $version' package.json > "$RELEASE_DIR/package.json"
```
Then the contents of `$RELEASE_DIR` should be good to `npm publish`, no?
2025-04-30 11:03:10 -07:00
Michael Bolin
c432d9ef81
chore: remove the REPL crate/subcommand ( #754 )
...
@oai-ragona and I discussed it, and we feel the REPL crate has served
its purpose, so we're going to delete the code and future archaeologists
can find it in Git history.
2025-04-30 10:15:50 -07:00
Michael Bolin
fcb51acb41
Merge 5141716dbb into sapling-pr-archive-bolinfest
2025-04-30 10:07:13 -07:00
Michael Bolin
5141716dbb
chore: remove the REPL crate/subcommand
2025-04-30 10:07:06 -07:00
Michael Bolin
4746ee900f
fix: remove expected dot after v in rust-v tag name ( #742 )
...
I think this extra dot was not intentional, but I'm not sure. Certainly
this comment suggests it should not be there:
85999d7277/.github/workflows/rust-release.yml (L4)
2025-04-30 10:05:47 -07:00
Michael Bolin
0995b604ad
Merge f25597b510 into sapling-pr-archive-bolinfest
2025-04-30 09:21:33 -07:00
Michael Bolin
f25597b510
fix: read version from package.json instead of modifying session.ts
2025-04-30 09:21:25 -07:00
Michael Bolin
33c84d5b82
Merge c8f9dab76f into sapling-pr-archive-bolinfest
2025-04-30 09:20:34 -07:00
Michael Bolin
c8f9dab76f
fix: read version from package.json instead of modifying session.ts
2025-04-30 09:20:25 -07:00
Michael Bolin
8e6504b9e7
chore: create a script for the release process
2025-04-30 08:47:59 -07:00
Michael Bolin
f2ed46ceca
fix: include x86_64-unknown-linux-gnu in the list of arch to build codex-linux-sandbox ( #748 )
2025-04-29 21:19:14 -07:00
Michael Bolin
0020f102e4
Merge ec4390a6e1 into sapling-pr-archive-bolinfest
2025-04-29 21:17:51 -07:00
Michael Bolin
ec4390a6e1
fix: include x86_64-unknown-linux-gnu in the list of arch to build codex-linux-sandbox
2025-04-29 21:17:42 -07:00
Michael Bolin
e42dacbdc8
fix: add another place where $dest was missing in rust-release.yml ( #747 )
...
I thought https://github.com/openai/codex/pull/745 was the last fix I
needed, but apparently not.
rust-v.0.0.2504292236
2025-04-29 20:23:54 -07:00
Michael Bolin
c26292d617
Merge 23e60c4090 into sapling-pr-archive-bolinfest
2025-04-29 20:23:04 -07:00
Michael Bolin
23e60c4090
fix: add another place where $dest was missing in rust-release.yml
2025-04-29 20:22:45 -07:00
Michael Bolin
bee779191f
Merge 34bbb99494 into sapling-pr-archive-bolinfest
2025-04-29 20:22:10 -07:00
Michael Bolin
34bbb99494
fix: add another place where $dest was missing in rust-release.yml
2025-04-29 20:22:01 -07:00
Michael Bolin
5122fe647f
chore: fix errors in .github/workflows/rust-release.yml and prep 0.0.2504292006 release ( #745 )
...
Apparently I made two key mistakes in
https://github.com/openai/codex/pull/740 (fixed in this PR):
* I forgot to redefine `$dest` in the `Stage Linux-only artifacts` step
* I did not define the `if` check correctly in the `Stage Linux-only
artifacts` step
This fixes both of those issues and bumps the workspace version to
`0.0.2504292006` in preparation for another release attempt.
rust-v.0.0.2504292006
2025-04-29 20:12:23 -07:00
Michael Bolin
74b1fb774e
merge commit for archive created by Sapling
2025-04-29 20:10:23 -07:00
Michael Bolin
b587b76d43
chore: fix errors in .github/workflows/rust-release.yml and prep 0.0.2504292006 release
2025-04-29 20:10:14 -07:00
Michael Bolin
1a39568e03
chore: set Cargo workspace to version 0.0.2504291954 to create a scratch release ( #744 )
rust-v.0.0.2504291954
2025-04-29 19:56:30 -07:00
Michael Bolin
d63529a1c9
Merge b227a20792 into sapling-pr-archive-bolinfest
2025-04-29 19:56:14 -07:00
Michael Bolin
b227a20792
chore: set Cargo workspace to version 0.0.2504291954 to create a scratch release
2025-04-29 19:55:56 -07:00
Michael Bolin
efb0acc152
fix: primary output of the codex-cli crate is named codex, not codex-cli ( #743 )
...
I just got a bunch of failures in the release workflow:
https://github.com/openai/codex/actions/runs/14745492805/job/41391926707
along the lines of:
```
cp: cannot stat 'target/aarch64-unknown-linux-gnu/release/codex-cli': No such file or directory
```
2025-04-29 19:53:29 -07:00
Michael Bolin
6dfeca8c3a
Merge d14b8fc1a7 into sapling-pr-archive-bolinfest
2025-04-29 19:47:07 -07:00
Michael Bolin
d14b8fc1a7
fix: primary output of the codex-cli crate is named codex, not codex-cli
2025-04-29 19:46:58 -07:00
Michael Bolin
36899af488
Merge 9483c56240 into sapling-pr-archive-bolinfest
2025-04-29 19:41:50 -07:00