Skip to content

Commit

Permalink
Udate github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlk committed Oct 3, 2024
1 parent 2e81c62 commit 7793f46
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,22 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
python-version: ["3.10", "3.11", "3.12", "3.13"]
architecture: [x86_64, aarch64]
exclude:
# Windows doesn't support ARM builds directly in GitHub Actions
include:
# Linux builds
- os: ubuntu-latest
architectures: "x86_64 aarch64"
# Windows builds (x86_64 only)
- os: windows-latest
architecture: aarch64
architectures: "AMD64"
# macOS Intel
- os: macos-13
architectures: "x86_64 arm64"
# macOS Apple silicon
- os: macos-14
architectures: "arm64"

steps:
- uses: actions/checkout@v4
Expand All @@ -40,11 +49,11 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_BUILD: cp{310,311,312,313}-*
CIBW_ARCHS_LINUX: ${{ matrix.architecture }}
CIBW_ARCHS_MACOS: ${{ matrix.architecture }}
CIBW_ARCHS_WINDOWS: ${{ matrix.architecture }}
CIBW_ARCHS_LINUX: ${{ matrix.architectures }}
CIBW_ARCHS_MACOS: ${{ matrix.architectures }}
CIBW_ARCHS_WINDOWS: ${{ matrix.architectures }}

- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.architecture }}
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

0 comments on commit 7793f46

Please sign in to comment.