Skip to content

Commit a4fd580

Browse files
committed
Add native Windows ARM64 vcpkg CI
1 parent 5ff8f00 commit a4fd580

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,8 @@ jobs:
258258
target: x86_64-unknown-linux-gnu
259259
- image: windows-latest
260260
target: x86_64-pc-windows-msvc
261-
- image: windows-latest
261+
- image: windows-11-arm
262262
target: aarch64-pc-windows-msvc
263-
run-tests: false
264263
- image: macos-latest
265264
target: x86_64-apple-darwin
266265
- image: macos-latest
@@ -292,7 +291,11 @@ jobs:
292291
else
293292
echo "VCPKGRS_TRIPLET=x64-windows-static-release" >> "$GITHUB_ENV"
294293
fi
295-
echo "VCPKG_DEFAULT_HOST_TRIPLET=x64-windows-static-release" >> "$GITHUB_ENV"
294+
if [[ "${{ runner.arch }}" == "ARM64" ]]; then
295+
echo "VCPKG_DEFAULT_HOST_TRIPLET=arm64-windows-static-release" >> "$GITHUB_ENV"
296+
else
297+
echo "VCPKG_DEFAULT_HOST_TRIPLET=x64-windows-static-release" >> "$GITHUB_ENV"
298+
fi
296299
# Format file locking issue workaround:
297300
echo "RUST_TEST_THREADS=1" >> "$GITHUB_ENV"
298301
- name: "Install vcpkg dependencies"

0 commit comments

Comments
 (0)