Skip to content

Commit 7a54588

Browse files
committed
add macos-10.15/universal2
1 parent c9d18b5 commit 7a54588

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-wheels.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424

2525
fail-fast: false
2626
matrix:
27-
#python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ]
28-
python-version: [ "3.9", "3.10" ]
27+
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ]
2928
os: [ubuntu-latest, macos-latest]
3029
platform: [x64, x32]
3130
exclude:
@@ -47,6 +46,12 @@ jobs:
4746
- python-version: "3.10"
4847
os: ubuntu-latest
4948
platform: aarch64
49+
- python-version: "3.9"
50+
os: macos-10.15
51+
platform: x86_64
52+
- python-version: "3.10"
53+
os: macos-10.15
54+
platform: x86_64
5055
env:
5156
REPO_DIR: netcdf4-python
5257
PKG_NAME: netcdf4-python
@@ -81,7 +86,8 @@ jobs:
8186
if [ "macos-latest" == "${{ matrix.os }}" ]; then echo "TRAVIS_OS_NAME=osx" >> $GITHUB_ENV; else echo "TRAVIS_OS_NAME=${{ matrix.os }}" >> $GITHUB_ENV; fi
8287
if [ "schedule" == "${{ github.event_name }}" ]; then echo "TRAVIS_EVENT_TYPE=cron" >> $GITHUB_ENV; else echo "TRAVIS_EVENT_TYPE=${{ github.event_name }}" >> $GITHUB_ENV; fi
8388
if [ "schedule" == "${{ github.event_name }}" ]; then echo "BUILD_COMMIT=master" >> $GITHUB_ENV; else echo "BUILD_COMMIT=$BUILD_COMMIT" >> $GITHUB_ENV; fi
84-
if [ "macos-latest" == "${{ matrix.os }}" ] && [ "$MB_PYTHON_VERSION" == "3.10" ]; then echo "PLAT=universal2" >> $GITHUB_ENV; fi
89+
# make universal2 wheels on macos 10.15 by cross-compiling
90+
if [ "macos-10.15" == "${{ matrix.os }}" ]; then echo "PLAT=universal2" >> $GITHUB_ENV; fi
8591
8692
- name: Setup Special Environment variables for Linux AArch64
8793
if: ${{ matrix.platform == 'aarch64' }}

0 commit comments

Comments
 (0)