Skip to content

Commit

Permalink
add build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed May 19, 2024
1 parent caa9880 commit 06a00be
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build_wheels.yml
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
4 changes: 2 additions & 2 deletions .github/workflows/quick_wheel_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ on:

jobs:
main:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]

runs-on: ${{ matrix.os }}

steps:
- name: Additional macOS settings
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
Expand Down

0 comments on commit 06a00be

Please sign in to comment.