Skip to content

Python bindings and profiles #24

Python bindings and profiles

Python bindings and profiles #24

Workflow file for this run

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.2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl