Skip to content

Commit 3bdb61f

Browse files
committed
.
1 parent 7bb0349 commit 3bdb61f

File tree

1 file changed

+27
-41
lines changed

1 file changed

+27
-41
lines changed

.github/workflows/wheels.yml

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,53 +27,39 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929

30-
- name: Debug MSVC tools in PATH
30+
- name: Set up MSVC environment
3131
shell: cmd
3232
run: |
33-
echo "Listing contents of C:\Program Files\Microsoft Visual Studio\..."
34-
dir "C:\Program Files\Microsoft Visual Studio\"
35-
echo ""
36-
echo "Attempting to set up MSVC environment..."
3733
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" arm64
38-
echo "MSVC environment setup attempted."
39-
echo ""
40-
echo "Searching for cl.exe..."
41-
where cl.exe || echo "cl.exe not found in PATH"
42-
echo "Searching for link.exe..."
43-
where link.exe || echo "link.exe not found in PATH"
44-
echo "Searching for nmake.exe..."
45-
where nmake.exe || echo "nmake.exe not found in PATH"
46-
echo "Current PATH:"
47-
echo %PATH%
34+
echo "MSVC environment for ARM64 initialized."
4835
49-
# Steps for building and validation are removed as per requirements
50-
# - name: Build wheels
51-
# uses: pypa/[email protected]
52-
# with:
53-
# package-dir: ./ # Build from source checkout
54-
# env:
55-
# CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
56-
# CIBW_BUILD_FRONTEND: 'pip'
57-
# CIBW_PLATFORM: 'auto'
58-
# CIBW_BEFORE_BUILD_WINDOWS: bash scripts/cibw_before_build_windows.sh
59-
# CIBW_ENVIRONMENT_WINDOWS: |
60-
# CC=cl.exe
61-
# CXX=cl.exe
62-
# LD=link.exe
36+
- name: Build wheels
37+
uses: pypa/[email protected]
38+
with:
39+
package-dir: ./ # Build from source checkout
40+
env:
41+
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
42+
CIBW_BUILD_FRONTEND: 'pip'
43+
CIBW_PLATFORM: 'auto'
44+
CIBW_BEFORE_BUILD_WINDOWS: bash scripts/cibw_before_build_windows.sh
45+
CIBW_ENVIRONMENT_WINDOWS: |
46+
CC=cl.exe
47+
CXX=cl.exe
48+
LD=link.exe
6349
64-
# - name: Set up Python for validation
65-
# uses: mamba-org/setup-micromamba@v2
66-
# with:
67-
# environment-name: wheel-env
68-
# create-args: >-
69-
# python=3.12
70-
# wheel
71-
# cache-downloads: true
72-
# cache-environment: true
50+
- name: Set up Python for validation
51+
uses: mamba-org/setup-micromamba@v2
52+
with:
53+
environment-name: wheel-env
54+
create-args: >-
55+
python=${{ matrix.python[1] }}
56+
wheel
57+
cache-downloads: true
58+
cache-environment: true
7359

74-
# - name: Validate wheel RECORD
75-
# shell: bash -el {0}
76-
# run: for whl in $(ls wheelhouse); do wheel unpack wheelhouse/$whl -d /tmp; done
60+
- name: Validate wheel RECORD
61+
shell: bash -el {0}
62+
run: for whl in $(ls wheelhouse); do wheel unpack wheelhouse/$whl -d /tmp; done
7763

7864
# Artifact upload is removed as per requirements
7965
# - uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)