Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

feat: include windows binaries in GitHub releases (#2035)

Michael Bolin18eb15700021
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml
index 812d7a3cfe..32c9669110 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`