Skip to content

Commit

Permalink
gha: add linux/aarch64 architecture (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
y3ti authored Sep 6, 2023
1 parent ff4c758 commit 670de7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: make requirements c_lib
- run: make requirements
- name: Set up QEMU # Needed to build aarch64 wheels
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
with:
platforms: all
- uses: pypa/[email protected]
- uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ build = [
"pp38-*",
"pp39-*",
]
before-all = "make c_lib"

[tool.cibuildwheel.linux]
archs = ["x86_64"]
archs = ["x86_64", "aarch64"]

[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
environment = { MACOSX_DEPLOYMENT_TARGET="10.15" }

0 comments on commit 670de7f

Please sign in to comment.