Skip to content

Commit

Permalink
add support for mac and more linux builds
Browse files Browse the repository at this point in the history
        but temporarily disable actual release for testing
  • Loading branch information
sebastroy committed Oct 9, 2024
1 parent 2da163e commit 754fb0d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# the name of this file must match the one in pypi.org config
name: Build/Test/Release
on:
release:
types:
- published
on: [push]
# on:
# release:
# types:
# - published
permissions:
id-token: write # This is required for requesting the JWT
jobs:
Expand All @@ -28,23 +29,30 @@ jobs:
env:
BUILD_OS: ${{ matrix.os }}
CXX: ${{ matrix.compiler }}
- name: Publish source dist release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Publish source dist release distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
wheels_build:
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"
- name: Publish wheel release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.max }}
# - name: Publish wheel release distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# packages-dir: wheelhouse
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 754fb0d

Please sign in to comment.