Skip to content

Commit ae274c5

Browse files
committed
Update github action Build Wheel
1 parent 17cbcd9 commit ae274c5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build_wheel.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,14 @@ jobs:
7676
with:
7777
submodules: recursive
7878

79-
- name: Setup Python
79+
- name: Initialize vcpkg
80+
run: |
81+
git clone https://github.com/Microsoft/vcpkg.git vendor/vcpkg
82+
83+
- name: Setup Python ${{ matrix.python-version }}
8084
uses: actions/setup-python@v4
8185
with:
82-
python-version: ${{ env.PYTHON_VER }}
86+
python-version: ${{ matrix.python-version }}
8387

8488
- name: Create virtual environment
8589
run: |
@@ -112,7 +116,7 @@ jobs:
112116
CMAKE_ARGS: >
113117
-DCMAKE_TOOLCHAIN_FILE=./vendor/vcpkg/scripts/buildsystems/vcpkg.cmake
114118
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
115-
-DPYTHON_VER=${{ env.PYTHON_VER }}
119+
-DPYTHON_VER=${{ matrix.python-version }}
116120
-DSHARED_SUFFIX=.cpython-311-darwin.so # Update to match Python version
117121
run: |
118122
source .venv/bin/activate

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def build_cmake_extension(self):
5757
"-DCMAKE_TOOLCHAIN_FILE=./vendor/vcpkg/scripts/buildsystems/vcpkg.cmake",
5858
f"-DPYTHON_VER={tmp_python_version}",
5959
f"-DSHARED_SUFFIX={tmp_cmd_suffix}",
60-
"-DCMAKE_OSX_ARCHITECTURES=x86_64"
60+
#"-DCMAKE_OSX_ARCHITECTURES=x86_64"
6161
]
6262

6363
# Run CMake to configure and build the extension

0 commit comments

Comments
 (0)