Skip to content

Commit d78595a

Browse files
committed
.
1 parent 3bdb61f commit d78595a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/wheels.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: Set up MSVC environment
31-
shell: cmd
32-
run: |
33-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" arm64
34-
echo "MSVC environment for ARM64 initialized."
31+
uses: ilammy/msvc-dev-cmd@v1
32+
with:
33+
arch: arm64 # Ensure this matches your target architecture
3534

3635
- name: Build wheels
3736
uses: pypa/[email protected]
@@ -43,6 +42,9 @@ jobs:
4342
CIBW_PLATFORM: 'auto'
4443
CIBW_BEFORE_BUILD_WINDOWS: bash scripts/cibw_before_build_windows.sh
4544
CIBW_ENVIRONMENT_WINDOWS: |
45+
PATH="%PATH%"
46+
INCLUDE="%INCLUDE%"
47+
LIB="%LIB%"
4648
CC=cl.exe
4749
CXX=cl.exe
4850
LD=link.exe

0 commit comments

Comments
 (0)