Skip to content

Commit

Permalink
macos
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 18, 2024
1 parent e382021 commit 3bba17a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on: [push, pull_request]

jobs:
wheels:
runs-on: ${{ matrix.platform[0] }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
fail-fast: true
matrix:
platform:
- [ubuntu-latest, manylinux_aarch64]
#- [ubuntu-latest, manylinux_x86_64]
python: ['cp311', 'cp312']
platform: [ {os: "ubuntu-latest", target: "manylinux_x86_64"},
{os: "ubuntu-latest", target: "manylinux_aarch64"},
{os: "macos-14", target: "macosx_arm64" }]
python: [ {cp: "cp311", py: "3.11"}, {cp: "cp312", py: "3.12"}]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,8 +25,6 @@ jobs:
- name: Building wheel
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_BUILD: "${{ matrix.python }}-${{ matrix.platform[1] }}"
#CIBW_MANYLINUX_X86_64_IMAGE: "manylinux_2_28"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux_2_28"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_BEFORE_ALL_LINUX: "dnf install -y clang libffi-devel eigen3-devel python3.11-devel.aarch64"
CIBW_BUILD: "${{ matrix.python.cp }}-${{ matrix.platform.target }}"
CIBW_BEFORE_ALL_LINUX: "dnf install -y clang libffi-devel eigen3-devel python${{ matrix.python.py }}-devel"
CIBW_BEFORE_ALL_MACOS: "brew install eigen && brew install --cask gcc-arm-embedded && brew install gcc@13"
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ flake8-implicit-str-concat.allow-multiline=false

[tool.pytest.ini_options]
addopts = "--durations=10 -n auto"

[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"

0 comments on commit 3bba17a

Please sign in to comment.