Udate github actions #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: | |
schedule: | |
- cron: '0 1 * * 4' # Runs every Thursday at 1 AM (UTC) | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
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 | |
- os: windows-latest | |
architecture: aarch64 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- name: Build wheels | |
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 }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.os }}-${{ matrix.architecture }} | |
path: ./wheelhouse/*.whl |