-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: use accelerate macos-14 wheels [wheel build]
- Loading branch information
Showing
5 changed files
with
130 additions
and
75 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 |
---|---|---|
|
@@ -105,7 +105,8 @@ jobs: | |
# so easier to separate out here. | ||
- [ubuntu-22.04, manylinux_x86_64, ""] | ||
- [macos-13, macosx_x86_64, openblas] | ||
- [macos-14, macosx_arm64, openblas] | ||
- [macos-13, macosx_x86_64, accelerate] | ||
- [macos-14, macosx_arm64, accelerate] # always use accelerate | ||
- [windows-2019, win_amd64, ""] | ||
|
||
# python: ["cp310", "cp311", "cp312", "cp13"] | ||
|
@@ -165,13 +166,23 @@ jobs: | |
echo "FC=gfortran-13" >> "$GITHUB_ENV" | ||
echo "F77=gfortran-13" >> "$GITHUB_ENV" | ||
echo "F90=gfortran-13" >> "$GITHUB_ENV" | ||
# macosx_x86_64 with OpenBLAS | ||
# if INSTALL_OPENBLAS isn't specified then scipy-openblas is automatically installed | ||
CIBW="RUNNER_OS=macOS" | ||
PKG_CONFIG_PATH="$PWD/.openblas" | ||
DYLD="$DYLD_LIBRARY_PATH:/$PWD/.openblas/lib" | ||
echo "CIBW_ENVIRONMENT_MACOS=$CIBW PKG_CONFIG_PATH=$PKG_CONFIG_PATH DYLD_LIBRARY_PATH=$DYLD" >> "$GITHUB_ENV" | ||
if [[ ${{ matrix.buildplat[2] }} == 'accelerate' ]]; then | ||
# macosx_arm64 and macosx_x86_64 with accelerate | ||
# only target Sonoma onwards | ||
CIBW="MACOSX_DEPLOYMENT_TARGET=14.0 INSTALL_OPENBLAS=false RUNNER_OS=macOS" | ||
echo "CIBW_ENVIRONMENT_MACOS=$CIBW" >> "$GITHUB_ENV" | ||
# the macos-13 image that's used for building the x86_64 wheel can't test | ||
# a wheel with deployment target >= 14 without further work | ||
echo "CIBW_TEST_SKIP=*-macosx_x86_64" >> "$GITHUB_ENV" | ||
else | ||
# macosx_x86_64 with OpenBLAS | ||
# if INSTALL_OPENBLAS isn't specified then scipy-openblas is automatically installed | ||
CIBW="RUNNER_OS=macOS" | ||
PKG_CONFIG_PATH="$PWD/.openblas" | ||
DYLD="$DYLD_LIBRARY_PATH:/$PWD/.openblas/lib" | ||
echo "CIBW_ENVIRONMENT_MACOS=$CIBW PKG_CONFIG_PATH=$PKG_CONFIG_PATH DYLD_LIBRARY_PATH=$DYLD" >> "$GITHUB_ENV" | ||
fi | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
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
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
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
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