@@ -383,6 +383,8 @@ jobs:
383383 tag : ${{ github.ref_name }}
384384 should_publish_npm : ${{ steps.npm_publish_settings.outputs.should_publish }}
385385 npm_tag : ${{ steps.npm_publish_settings.outputs.npm_tag }}
386+ windows_x64_sha256 : ${{ steps.win_hash.outputs.windows_x64_sha256 }}
387+ windows_arm64_sha256 : ${{ steps.win_hash.outputs.windows_arm64_sha256 }}
386388
387389 steps :
388390 - name : Checkout repository
@@ -395,6 +397,16 @@ jobs:
395397 - name : List
396398 run : ls -R dist/
397399
400+ - name : Compute SHA256 for Windows EXEs
401+ id : win_hash
402+ shell : bash
403+ run : |
404+ set -euo pipefail
405+ x64_sha=$(sha256sum "dist/x86_64-pc-windows-msvc/codex-rs/dist/x86_64-pc-windows-msvc/codex-x86_64-pc-windows-msvc.exe" | awk '{print $1}')
406+ arm_sha=$(sha256sum "dist/aarch64-pc-windows-msvc/codex-rs/dist/aarch64-pc-windows-msvc/codex-aarch64-pc-windows-msvc.exe" | awk '{print $1}')
407+ echo "windows_x64_sha256=${x64_sha}" >> "$GITHUB_OUTPUT"
408+ echo "windows_arm64_sha256=${arm_sha}" >> "$GITHUB_OUTPUT"
409+
398410 - name : Define release name
399411 id : release_name
400412 run : |
@@ -549,4 +561,16 @@ jobs:
549561 repos/${GITHUB_REPOSITORY}/git/refs/heads/latest-alpha-cli \
550562 -X PATCH \
551563 -f sha="${GITHUB_SHA}" \
552- -F force=true
564+ -F force=true
565+
566+ winget :
567+ needs : release
568+ runs-on : windows-latest
569+ steps :
570+ - uses : actions/checkout@v5
571+ - name : Validate WinGet manifests
572+ uses : ./.github/actions/winget-submit
573+ with :
574+ version : ${{ needs.release.outputs.version }}
575+ windows_x64_sha256 : ${{ needs.release.outputs.windows_x64_sha256 }}
576+ windows_arm64_sha256 : ${{ needs.release.outputs.windows_arm64_sha256 }}
0 commit comments