Skip to content

Commit 1e18452

Browse files
committed
fix(ci): setup MSVC environment for Windows ARM64 builds
The ring crate build was failing with 'assert.h not found' error because clang couldn't find the Windows SDK headers. This happens when building for aarch64-pc-windows-msvc without the proper MSVC environment variables. This fix adds the ilammy/msvc-dev-cmd action to set up the MSVC developer command prompt environment (INCLUDE, LIB, LIBPATH, etc.) before building. The action is configured with 'amd64_arm64' arch for cross-compiling from x64 to ARM64. Reference: briansmith/ring#2135
1 parent ca55b1c commit 1e18452

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ jobs:
163163

164164
# Windows ARM64 requires clang from Visual Studio for building the ring crate
165165
# See: https://github.com/briansmith/ring/blob/main/BUILDING.md
166+
- name: Setup MSVC environment for Windows ARM64
167+
if: matrix.target == 'aarch64-pc-windows-msvc'
168+
uses: ilammy/msvc-dev-cmd@v1
169+
with:
170+
arch: amd64_arm64
171+
166172
- name: Setup LLVM for Windows ARM64
167173
if: matrix.target == 'aarch64-pc-windows-msvc'
168174
shell: pwsh

0 commit comments

Comments
 (0)