Skip to content

Commit 82bdd3c

Browse files
sykuangclaude
andcommitted
ci: enable Windows ARM64 build in GitHub Actions
- Add windows-11-arm runner to the build matrix for native ARM64 builds - Set CC to zig cross-compiler (aarch64-windows-gnu) for ARM64 runner - Increase npm ci timeout to 15 minutes for native module compilation - Add ARM64 MSI URL to winget publish command Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 388b4c9 commit 82bdd3c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build-helper.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
runner: ubuntu-24.04-arm
2929
- platform: "windows"
3030
runner: "windows-latest"
31-
# - platform: "windows"
32-
# runner: "windows-11-arm64-16core"
31+
- platform: "windows"
32+
runner: "windows-11-arm"
3333
runs-on: ${{ matrix.runner }}
3434
steps:
3535
- uses: actions/checkout@v6
@@ -80,7 +80,7 @@ jobs:
8080
command: npm ci --no-audit --no-fund
8181
retry_on: error
8282
max_attempts: 3
83-
timeout_minutes: 5
83+
timeout_minutes: 15
8484
env:
8585
GIT_ASKPASS: "echo"
8686
GIT_TERMINAL_PROMPT: "0"
@@ -156,6 +156,7 @@ jobs:
156156
CSC_LINK: ${{ steps.variables.outputs.SM_CLIENT_CERT_FILE }}
157157
CSC_KEY_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
158158
STATIC_DOCSITE_PATH: ${{env.STATIC_DOCSITE_PATH}}
159+
CC: ${{ contains(matrix.runner, 'arm') && 'zig cc -target aarch64-windows-gnu' || '' }}
159160
shell: powershell # electron-builder's Windows code signing package has some compatibility issues with pwsh, so we need to use Windows Powershell
160161

161162
# Upload artifacts to the S3 staging and to the workflow output for the draft release job
@@ -182,7 +183,7 @@ jobs:
182183
needs: build-app
183184
permissions:
184185
contents: write
185-
if: ${{ github.event_name != 'workflow_dispatch' }}
186+
if: ${{ github.event_name != 'workflow_dispatch' && !cancelled() }}
186187
steps:
187188
- name: Download artifacts
188189
uses: actions/download-artifact@v4

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ tasks:
431431
vars:
432432
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
433433
cmd: |
434-
wingetcreate update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t {{.GITHUB_TOKEN}}
434+
wingetcreate update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-arm64-{{.UP_VERSION}}.msi" -t {{.GITHUB_TOKEN}}
435435
436436
dev:installwsh:
437437
desc: quick shortcut to rebuild wsh and install for macos arm64

0 commit comments

Comments
 (0)