Skip to content

Commit

Permalink
Build wheels for Apple arm64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinung-r committed Nov 29, 2023
1 parent 52bd5e3 commit 0797c83
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
analyzers: "cppcheck"
scan: "scan-build --status-bugs"
mkdoc: "-DBUILD_DOC=ON -DSPHINX_ARGS=-WT"
- os: macos-13-xlarge
privledges: "sudo"
arch: arm64

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
arch: i686
- os: macos-latest
arch: x86_64
- os: macos-13-xlarge
arch: arm64

steps:
- uses: actions/checkout@v2
Expand Down
17 changes: 17 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,21 @@ select = "cp3{9,10,11,12}*"
manylinux-x86_64-image = "manylinux2014"

[tool.cibuildwheel.macos]
before-build = [
"""sudo cmake \
-S . \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DBUILD_TESTING=OFF \
-DBUILD_PYTHON=OFF \
-DBUILD_BIN=OFF \
""",
"""sudo cmake \
--build build \
--parallel \
--target install \
--config Release \
""",
]
environment = { CXXFLAGS="-L/usr/local/lib" }

0 comments on commit 0797c83

Please sign in to comment.