Skip to content

Commit 18eb157

Browse files
authored
feat: include windows binaries in GitHub releases (openai#2035)
We should stop shipping the old TypeScript CLI to Windows users. I did some light testing of the Rust CLI on Windows in `cmd.exe` and it works better than I expected!
1 parent 6cfee15 commit 18eb157

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/rust-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
target: aarch64-unknown-linux-musl
7171
- runner: ubuntu-24.04-arm
7272
target: aarch64-unknown-linux-gnu
73+
- runner: windows-latest
74+
target: x86_64-pc-windows-msvc
7375

7476
steps:
7577
- uses: actions/checkout@v4
@@ -101,8 +103,13 @@ jobs:
101103
dest="dist/${{ matrix.target }}"
102104
mkdir -p "$dest"
103105
104-
cp target/${{ matrix.target }}/release/codex-exec "$dest/codex-exec-${{ matrix.target }}"
105-
cp target/${{ matrix.target }}/release/codex "$dest/codex-${{ matrix.target }}"
106+
if [[ "${{ matrix.runner }}" == windows* ]]; then
107+
cp target/${{ matrix.target }}/release/codex-exec.exe "$dest/codex-exec-${{ matrix.target }}.exe"
108+
cp target/${{ matrix.target }}/release/codex.exe "$dest/codex-${{ matrix.target }}.exe"
109+
else
110+
cp target/${{ matrix.target }}/release/codex-exec "$dest/codex-exec-${{ matrix.target }}"
111+
cp target/${{ matrix.target }}/release/codex "$dest/codex-${{ matrix.target }}"
112+
fi
106113
107114
# After https://github.com/openai/codex/pull/1228 is merged and a new
108115
# release is cut with an artifacts built after that PR, the `-gnu`

0 commit comments

Comments
 (0)