-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caa9880
commit 06a00be
Showing
2 changed files
with
54 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build wheels | ||
|
||
on: | ||
# allows running workflows manually | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
branches: | ||
- develop | ||
paths-ignore: | ||
- docs/** | ||
|
||
push: | ||
branches: | ||
- scikit-build-core | ||
paths-ignore: | ||
- docs/** | ||
|
||
jobs: | ||
main: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-13, macos-14] | ||
|
||
steps: | ||
- name: Additional macOS settings | ||
if: matrix.os == 'macos-13' || matrix.os == 'macos-14' | ||
shell: bash -l {0} | ||
run: | | ||
echo "FC=$(which gfortran-13)" >> $GITHUB_ENV | ||
# hdf5 is needed for building tables | ||
brew install hdf5 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.18.0 | ||
env: | ||
CIBW_BUILD_VERBOSITY: 1 | ||
with: | ||
package-dir: . | ||
output-dir: wheelhouse | ||
config-file: "{package}/pyproject.toml" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl |
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