240430.212121.HKT try fixing "conversion to non-scalar type requested" #12
Workflow file for this run
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
name: Build python wheels | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macos-11] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Get tags for use with git describe | |
- name: Checkout pybind11 submodule | |
run: git submodule update --init python/pybind11 | |
- uses: fortran-lang/setup-fortran@main | |
if: ${{ runner.os == 'macOS' }} | |
with: | |
compiler: gcc | |
version: 8 | |
# Copied from https://github.com/scipy/scipy/blob/main/.github/workflows/wheels.yml | |
- name: win_amd64 - install rtools | |
run: | | |
# mingw-w64 | |
choco install rtools -y --no-progress --force --version=4.0.0.20220206 | |
echo "c:\rtools40\ucrt64\bin;" >> $env:GITHUB_PATH | |
if: ${{ runner.os == 'Windows' }} | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.16.5 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./prima_htmlcov | |
build_sdist: | |
name: Build source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build sdist | |
run: pipx run build --sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-sdist | |
path: dist/*.tar.gz |