Skip to content

Commit 2af5953

Browse files
committed
enable universal2 wheels
1 parent d0028e0 commit 2af5953

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/build-wheels.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
platform: x32
3232
- os: macos-latest
3333
platform: aarch64
34+
include:
35+
- python-version: "3.9"
36+
os: macos-10.15
37+
platform: x86_64
38+
- python-version: "3.10"
39+
os: macos-10.15
40+
platform: x86_64
3441
env:
3542
BUILD_COMMIT: v1.5.1.1rel
3643
MB_ML_VER: 2014
@@ -78,6 +85,8 @@ jobs:
7885
if [ "macos-latest" == "${{ matrix.os }}" ]; then echo "TRAVIS_OS_NAME=osx" >> $GITHUB_ENV; else echo "TRAVIS_OS_NAME=${{ matrix.os }}" >> $GITHUB_ENV; fi
7986
if [ "schedule" == "${{ github.event_name }}" ]; then echo "TRAVIS_EVENT_TYPE=cron" >> $GITHUB_ENV; else echo "TRAVIS_EVENT_TYPE=${{ github.event_name }}" >> $GITHUB_ENV; fi
8087
if [ "schedule" == "${{ github.event_name }}" ]; then echo "BUILD_COMMIT=master" >> $GITHUB_ENV; else echo "BUILD_COMMIT=$BUILD_COMMIT" >> $GITHUB_ENV; fi
88+
# make universal2 wheels on macos 10.15 by cross-compiling
89+
if [ "macos-10.15" == "${{ matrix.os }}" ]; then echo "PLAT=universal2" >> $GITHUB_ENV; fi
8190
- name: Setup Special Environment variables for aarch64
8291
if: startsWith(matrix.platform,'aarch64')
8392
run: |

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "multibuild"]
22
path = multibuild
3-
url = https://github.com/matthew-brett/multibuild
3+
url = https://github.com/multi-build/multibuild
44
[submodule "cftime"]
55
path = cftime
66
url = https://github.com/Unidata/cftime

0 commit comments

Comments
 (0)