@@ -217,6 +217,114 @@ jobs:
217217 - name : Install DotSlash
218218 uses : facebook/install-dotslash@1e4e7b3e07eaca387acb98f1d4720e0bee8dbb6a # v2
219219
220+ <<<<<<< HEAD
221+ ||||||| 60b45d92d9
222+ - name : Build Codex package archives
223+ shell : bash
224+ run : |
225+ set -euo pipefail
226+ for bundle in primary app-server; do
227+ bash "${GITHUB_WORKSPACE}/.github/scripts/build-codex-package-archive.sh" \
228+ --target "${{ matrix.target }}" \
229+ --bundle "$bundle" \
230+ --entrypoint-dir "target/${{ matrix.target }}/release" \
231+ --archive-dir "dist/${{ matrix.target }}"
232+ done
233+
234+ - name : Build Python runtime wheel
235+ shell : bash
236+ run : |
237+ set -euo pipefail
238+
239+ case "${{ matrix.target }}" in
240+ aarch64-pc-windows-msvc)
241+ platform_tag="win_arm64"
242+ ;;
243+ x86_64-pc-windows-msvc)
244+ platform_tag="win_amd64"
245+ ;;
246+ *)
247+ echo "No Python runtime wheel platform tag for ${{ matrix.target }}"
248+ exit 1
249+ ;;
250+ esac
251+
252+ python -m venv "${RUNNER_TEMP}/python-runtime-build-venv"
253+ "${RUNNER_TEMP}/python-runtime-build-venv/Scripts/python.exe" -m pip install build
254+
255+ stage_dir="${RUNNER_TEMP}/openai-codex-cli-bin-${{ matrix.target }}"
256+ wheel_dir="${GITHUB_WORKSPACE}/python-runtime-dist/${{ matrix.target }}"
257+ # Keep the helpers next to codex.exe in the runtime wheel so Windows
258+ # sandbox/elevation lookup matches the standalone release zip.
259+ python "${GITHUB_WORKSPACE}/sdk/python/scripts/update_sdk_artifacts.py" \
260+ stage-runtime \
261+ "$stage_dir" \
262+ "${GITHUB_WORKSPACE}/codex-rs/target/${{ matrix.target }}/release/codex.exe" \
263+ --codex-version "${GITHUB_REF_NAME}" \
264+ --platform-tag "$platform_tag" \
265+ --resource-binary "${GITHUB_WORKSPACE}/codex-rs/target/${{ matrix.target }}/release/codex-command-runner.exe" \
266+ --resource-binary "${GITHUB_WORKSPACE}/codex-rs/target/${{ matrix.target }}/release/codex-windows-sandbox-setup.exe"
267+ "${RUNNER_TEMP}/python-runtime-build-venv/Scripts/python.exe" -m build --wheel --outdir "$wheel_dir" "$stage_dir"
268+
269+ - name : Upload Python runtime wheel
270+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
271+ with :
272+ name : python-runtime-wheel-${{ matrix.target }}
273+ path : python-runtime-dist/${{ matrix.target }}/*.whl
274+ if-no-files-found : error
275+
276+ =======
277+ - name : Build Codex package archives
278+ shell : bash
279+ run : |
280+ set -euo pipefail
281+ for bundle in primary app-server; do
282+ bash "${GITHUB_WORKSPACE}/.github/scripts/build-codex-package-archive.sh" \
283+ --target "${{ matrix.target }}" \
284+ --bundle "$bundle" \
285+ --entrypoint-dir "target/${{ matrix.target }}/release" \
286+ --archive-dir "dist/${{ matrix.target }}"
287+ done
288+
289+ - name : Build Python runtime wheel
290+ shell : bash
291+ run : |
292+ set -euo pipefail
293+
294+ case "${{ matrix.target }}" in
295+ aarch64-pc-windows-msvc)
296+ platform_tag="win_arm64"
297+ ;;
298+ x86_64-pc-windows-msvc)
299+ platform_tag="win_amd64"
300+ ;;
301+ *)
302+ echo "No Python runtime wheel platform tag for ${{ matrix.target }}"
303+ exit 1
304+ ;;
305+ esac
306+
307+ python -m venv "${RUNNER_TEMP}/python-runtime-build-venv"
308+ "${RUNNER_TEMP}/python-runtime-build-venv/Scripts/python.exe" -m pip install build
309+
310+ stage_dir="${RUNNER_TEMP}/openai-codex-cli-bin-${{ matrix.target }}"
311+ wheel_dir="${GITHUB_WORKSPACE}/python-runtime-dist/${{ matrix.target }}"
312+ python "${GITHUB_WORKSPACE}/sdk/python/scripts/update_sdk_artifacts.py" \
313+ stage-runtime \
314+ "$stage_dir" \
315+ "dist/${{ matrix.target }}/codex-package-${{ matrix.target }}.tar.gz" \
316+ --codex-version "${GITHUB_REF_NAME}" \
317+ --platform-tag "$platform_tag"
318+ "${RUNNER_TEMP}/python-runtime-build-venv/Scripts/python.exe" -m build --wheel --outdir "$wheel_dir" "$stage_dir"
319+
320+ - name : Upload Python runtime wheel
321+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
322+ with :
323+ name : python-runtime-wheel-${{ matrix.target }}
324+ path : python-runtime-dist/${{ matrix.target }}/*.whl
325+ if-no-files-found : error
326+
327+ >>>>>>> upstream/main
220328 - name : Compress artifacts
221329 shell : bash
222330 run : |
0 commit comments