Build for Windows ARM (#2080)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Evan YuandJulius Marminge authored and GitHub committed 2026-04-16 17:01:27 -07:00
1 parent d90e15d1d7
commit 6891c77d3e
12 files changed
+581 -194

No files matched your search

+42 -1
View File
@@ -160,6 +160,11 @@ jobs:
platform: win
target: nsis
arch: x64
- label: Windows arm64
runner: windows-11-arm
platform: win
target: nsis
arch: arm64
steps:
- name: Checkout
uses: actions/checkout@v6
@@ -272,6 +277,17 @@ jobs:
done
fi
# Windows updater metadata is channel-specific (for example
# "latest.yml" or "nightly.yml"). Suffix each per-arch copy so the
# release job can merge matching arm64/x64 manifests back into one
# canonical manifest per channel.
if [[ "${{ matrix.platform }}" == "win" ]]; then
shopt -s nullglob
for manifest in release-publish/*.yml; do
mv "$manifest" "${manifest%.yml}-win-${{ matrix.arch }}.yml"
done
fi
- name: Upload build artifacts
uses: actions/upload-artifact@v7
with:
@@ -342,11 +358,36 @@ jobs:
for x64_manifest in release-assets/*-mac-x64.yml; do
arm64_manifest="${x64_manifest%-x64.yml}.yml"
if [[ -f "$arm64_manifest" ]]; then
node scripts/merge-mac-update-manifests.ts "$arm64_manifest" "$x64_manifest"
node scripts/merge-update-manifests.ts --platform mac "$arm64_manifest" "$x64_manifest"
rm -f "$x64_manifest"
fi
done
- name: Merge Windows updater manifests
run: |
shopt -s nullglob
found_windows_manifest=false
for x64_manifest in release-assets/*-win-x64.yml; do
arm64_manifest="${x64_manifest/-x64.yml/-arm64.yml}"
output_manifest="${x64_manifest/-win-x64.yml/.yml}"
if [[ ! -f "$arm64_manifest" ]]; then
echo "Missing matching arm64 Windows manifest for $x64_manifest" >&2
exit 1
fi
found_windows_manifest=true
node scripts/merge-update-manifests.ts --platform win \
"$arm64_manifest" \
"$x64_manifest" \
"$output_manifest"
rm -f "$arm64_manifest" "$x64_manifest"
done
if [[ "$found_windows_manifest" != true ]]; then
echo "No Windows updater manifests found to merge." >&2
exit 1
fi
- name: Publish release
if: needs.preflight.outputs.previous_tag != ''
uses: softprops/action-gh-release@v2