-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conditionals or python version, fix architecture name
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
- [ ubuntu-latest, manylinux, x86_64] | ||
- [ ubuntu-latest, manylinux, i686] | ||
- [ macos-latest, macosx, x86_64 ] # Intel chip | ||
- [ macos-14, macosx, macos-14] # ARM M1 chip | ||
- [ macos-14, macosx, arm64] # ARM M1 chip | ||
- [ windows-2019, win, AMD64 ] | ||
|
||
python: [[ "cp38", "3.8" ], [ "cp39", "3.9" ], | ||
|
@@ -54,6 +54,7 @@ jobs: | |
run: python -m pip install cibuildwheel==2.17.0 | ||
|
||
- name: Build Solcore | ||
if: ${{ matrix.buildplat[0] != 'macos-14' }} | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}* | ||
|
@@ -62,7 +63,18 @@ jobs: | |
CIBW_BEFORE_BUILD_MACOS: brew reinstall gfortran | ||
CIBW_BEFORE_BUILD_LINUX: python -m pip install numpy --config-settings=setup-args="-Dallow-noblas=true" | ||
|
||
# - name: Set extra env for arm64 | ||
- name: Build Solcore (Apple Silicon M1/M2) | ||
if: ${{ matrix.buildplat[0] == 'macos-14' && matrix.python[0] != 'cp38' && matrix.python[0] != 'cp39' }} | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}* | ||
CIBW_ARCHS: ${{ matrix.buildplat[2] }} | ||
CIBW_ENVIRONMENT_PASS_LINUX: RUNNER_OS | ||
CIBW_BEFORE_BUILD_MACOS: brew reinstall gfortran | ||
CIBW_BEFORE_BUILD_LINUX: python -m pip install numpy --config-settings=setup-args="-Dallow-noblas=true" | ||
|
||
|
||
# - name: Set extra env for arm64 | ||
# if: >- | ||
# ( contains(matrix.buildplat[2], 'arm64' ) ) | ||
# run: | | ||
|