diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml new file mode 100644 index 0000000000..30b184ff3b --- /dev/null +++ b/.github/workflows/build_wheels.yml @@ -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 diff --git a/.github/workflows/quick_wheel_test.yml b/.github/workflows/quick_wheel_test.yml index 0ba4ca870a..c438b0d4ed 100644 --- a/.github/workflows/quick_wheel_test.yml +++ b/.github/workflows/quick_wheel_test.yml @@ -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'