Skip to content

Commit d8058a4

Browse files
committed
chore: x-compile aarch64 bt.exe on windows amd64
azure artifact signing doesn't support running on aarch64, need to check if cross compilation is possible
1 parent 239d0b9 commit d8058a4

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release-canary.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ jobs:
160160
- name: Install dependencies
161161
run: ${{ matrix.packages_install }}
162162

163+
- name: Set up MSVC cross-compilation for Windows ARM64
164+
if: ${{ contains(matrix.targets, 'aarch64-pc-windows-msvc') }}
165+
uses: ilammy/msvc-dev-cmd@v1
166+
with:
167+
arch: amd64_arm64
168+
163169
- name: Build artifacts
164170
shell: bash
165171
run: |

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ jobs:
146146
- name: Install dependencies
147147
run: ${{ matrix.packages_install }}
148148

149+
- name: Set up MSVC cross-compilation for Windows ARM64
150+
if: ${{ contains(matrix.targets, 'aarch64-pc-windows-msvc') }}
151+
uses: ilammy/msvc-dev-cmd@v1
152+
with:
153+
arch: amd64_arm64
154+
149155
- name: Configure SSL.com signing env
150156
if: ${{ runner.os == 'Windows' && env.HAS_SSLDOTCOM_SIGNING == 'true' && !fromJson(needs.plan.outputs.val).announcement_is_prerelease }}
151157
shell: bash

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ windows-archive = ".zip"
2929
install-success-msg = ""
3030

3131
[dist.github-custom-runners]
32-
aarch64-pc-windows-msvc = "windows-11-arm"
32+
aarch64-pc-windows-msvc = "windows-2022"

0 commit comments

Comments
 (0)