Skip to content

Commit

Permalink
Merge pull request #77 from qognitive/feature/macos-13-14-linux-arch
Browse files Browse the repository at this point in the history
add support for mac and more linux builds
  • Loading branch information
sebastroy authored Oct 10, 2024
2 parents ec5ff18 + 5aec092 commit 2b5b958
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,23 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
# os: [ubuntu-latest, macos-13, macos-14]
os: [ubuntu-latest]
max: [none]
include:
- os: macos-13
max: 13.0
- os: macos-14
max: 14.0
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
with:
config-file: "{package}/pyproject.toml"
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.max }}
- name: Publish wheel release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,13 @@ sdist.include = ["fast_pauli/__version__.py"]
write_to = "fast_pauli/__version__.py"

[tool.cibuildwheel]
build = ["cp310-manylinux_x86_64", "cp311-manylinux_x86_64", "cp312-manylinux_x86_64", "cp313-manylinux_x86_64"]
build-frontend = "build"
skip = "pp*"
test-requires = "pytest"
test-command = "pytest -s -vv --import-mode importlib {project}/tests/fast_pauli"

[tool.cibuildwheel.linux]
build = ["cp3*_x86_64"]
skip = ["*musllinux*"]

[tool.cibuildwheel.macos]
environment = "CXX=g++-14"

0 comments on commit 2b5b958

Please sign in to comment.