From 18eb15700021f0a0cab861c4540212fd161da231 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Fri, 8 Aug 2025 13:03:11 -0700 Subject: [PATCH] feat: include windows binaries in GitHub releases (#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! --- .github/workflows/rust-release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index 812d7a3c..32c96691 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -70,6 +70,8 @@ jobs: target: aarch64-unknown-linux-musl - runner: ubuntu-24.04-arm target: aarch64-unknown-linux-gnu + - runner: windows-latest + target: x86_64-pc-windows-msvc steps: - uses: actions/checkout@v4 @@ -101,8 +103,13 @@ jobs: dest="dist/${{ matrix.target }}" mkdir -p "$dest" - cp target/${{ matrix.target }}/release/codex-exec "$dest/codex-exec-${{ matrix.target }}" - cp target/${{ matrix.target }}/release/codex "$dest/codex-${{ matrix.target }}" + if [[ "${{ matrix.runner }}" == windows* ]]; then + cp target/${{ matrix.target }}/release/codex-exec.exe "$dest/codex-exec-${{ matrix.target }}.exe" + cp target/${{ matrix.target }}/release/codex.exe "$dest/codex-${{ matrix.target }}.exe" + else + cp target/${{ matrix.target }}/release/codex-exec "$dest/codex-exec-${{ matrix.target }}" + cp target/${{ matrix.target }}/release/codex "$dest/codex-${{ matrix.target }}" + fi # After https://github.com/openai/codex/pull/1228 is merged and a new # release is cut with an artifacts built after that PR, the `-gnu`