Skip to content

Commit

Permalink
wheels for x86_64 and aarch64
Browse files Browse the repository at this point in the history
musllinux is skipped for now
  • Loading branch information
ahgamut committed Aug 27, 2024
1 parent be1e1a3 commit 924b499
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-13, macos-14 ]
os: [ ubuntu-latest, windows-latest, macos-14 ] # macos-14 is apple silicon
runs-on: ${{ matrix.os }}
name: build and test wheels on ${{ matrix.os }}
steps:
Expand All @@ -27,18 +27,19 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_PRERELEASE_PYTHONS: False
CIBW_SKIP: "cp36* cp313-* pp*"
CIBW_SKIP: "cp36* cp313-* pp* *musllinux*"
CIBW_BUILD_FRONTEND: "build"
CIBW_BEFORE_BUILD: pip install numpy>=1.14 pybind11>=2.2
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest -v {project}"
CIBW_ARCHS_LINUX: "x86_64 aarch64"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_WINDOWS: "AMD64"
CIBW_TEST_SKIP: "*-win_arm64"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_ARCHS_MACOS: "arm64"
CIBW_ARCHS_WINDOWS: "ARM64"

- name: upload wheel artifacts temporarily
uses: actions/upload-artifact@v4
with:
name: cliquematch-wheels-${{ matrix.os }}
name: cliquematch-wheels-aarch64-${{ matrix.os }}
path: ./wheelhouse/*.whl
retention-days: 1
38 changes: 38 additions & 0 deletions .github/workflows/x86_64-wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and test all wheels
on:
push:
branches:
master

jobs:
build_wheels:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-13 ]
runs-on: ${{ matrix.os }}
name: build and test wheels on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_PRERELEASE_PYTHONS: False
CIBW_SKIP: "cp36* cp313-* pp* *musllinux*"
CIBW_BUILD_FRONTEND: "build"
CIBW_BEFORE_BUILD: pip install numpy>=1.14 pybind11>=2.2
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest -v {project}"
CIBW_ARCHS_LINUX: "x86_64"
CIBW_ARCHS_MACOS: "x86_64"
CIBW_ARCHS_WINDOWS: "AMD64"

- name: upload wheel artifacts temporarily
uses: actions/upload-artifact@v4
with:
name: cliquematch-wheels-x86_64-${{ matrix.os }}
path: ./wheelhouse/*.whl
retention-days: 1

0 comments on commit 924b499

Please sign in to comment.