Python bindings and profiles #19
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 | |
id: setup-fortran | |
with: | |
compiler: gcc | |
version: 8 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.16.2 | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
env: | |
# On windows we get a complaint from CMake: | |
# "CMake Error at python/pybind11/tools/FindPythonLibsNew.cmake:191 (message): | |
# Python config failure: Python is 32-bit, chosen compiler is 64-bit" | |
# I do not see a way to install a 32-bit compiler with the setup-fortran action, | |
# so we will just build 64-bit wheels on windows. | |
CIBW_ARCHS_WINDOWS: "AMD64" |