Skip to content

Commit 11ee75b

Browse files
committed
Changed default arch of github action Build Wheel
1 parent be0c61d commit 11ee75b

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/build_wheel.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,27 +90,28 @@ jobs:
9090
python -m pip install wheel # Add other build deps if needed
9191
python -m pip install -r requirements.txt
9292
93-
- name: Cache vcpkg
94-
uses: actions/cache@v3
95-
with:
96-
path: |
97-
${{ env.VCPKG_ROOT }}/downloads
98-
${{ env.VCPKG_ROOT }}/packages
99-
${{ env.VCPKG_ROOT }}/installed
100-
key: ${{ runner.os }}-vcpkg-${{ matrix.arch }}-${{ hashFiles('vcpkg.json') }}
101-
restore-keys: |
102-
${{ runner.os }}-vcpkg-${{ matrix.arch }}-
93+
# - name: Cache vcpkg
94+
# uses: actions/cache@v3
95+
# with:
96+
# path: |
97+
# ${{ env.VCPKG_ROOT }}/downloads
98+
# ${{ env.VCPKG_ROOT }}/packages
99+
# ${{ env.VCPKG_ROOT }}/installed
100+
# key: ${{ runner.os }}-vcpkg-${{ matrix.arch }}-${{ hashFiles('vcpkg.json') }}
101+
# restore-keys: |
102+
# ${{ runner.os }}-vcpkg-${{ matrix.arch }}-
103103

104104
- name: Bootstrap vcpkg
105105
run: ${{ env.VCPKG_ROOT }}/bootstrap-vcpkg.sh -disableMetrics
106106

107107
- name: Install vcpkg dependencies
108108
run: |
109-
${{ env.VCPKG_ROOT }}/vcpkg install
109+
${{ env.VCPKG_ROOT }}/vcpkg install --x-use-aria2
110110
111111
- name: Build extension
112112
run: |
113113
source .venv/bin/activate
114+
python automations/my_automator.py setup dev-env
114115
python automations/my_automator.py build so
115116
python automations/my_automator.py build wheel
116117
# - name: Create universal binary

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def build_cmake_extension(self):
7272
"-DCMAKE_TOOLCHAIN_FILE=./vendor/vcpkg/scripts/buildsystems/vcpkg.cmake",
7373
f"-DPYTHON_VER={tmp_python_version}",
7474
f"-DSHARED_SUFFIX={tmp_cmd_suffix}",
75-
"-DCMAKE_OSX_ARCHITECTURES=x86_64"
75+
"-DCMAKE_OSX_ARCHITECTURES=arm64"
7676
]
7777

7878
# Run CMake to configure and build the extension

0 commit comments

Comments
 (0)