diff --git a/.github/workflows/cibw-cc.yaml b/.github/workflows/cibw-cc.yaml index da27acc..2492a5a 100644 --- a/.github/workflows/cibw-cc.yaml +++ b/.github/workflows/cibw-cc.yaml @@ -4,46 +4,46 @@ on: workflow_dispatch: pull_request: branches: - - master + - master concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -jobs: - build-pyodide: - name: Pyodide - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - - - uses: pypa/cibuildwheel@v3.1 - env: - CIBW_PLATFORM: pyodide - - uses: actions/upload-artifact@v4 - with: - name: wheels-pyodide - path: dist/*.whl +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - platform: android + os: ubuntu-latest + - platform: android + os: macos-latest + - platform: ios + os: macos-latest + archs: all + - platform: pyodide + os: ubuntu-latest + + name: ${{ matrix.platform }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} - build-ios: - name: iOS - runs-on: macos-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - - run: brew upgrade cmake + - if: matrix.platform == 'ios' + run: brew upgrade cmake - uses: pypa/cibuildwheel@v3.1 env: - CIBW_PLATFORM: ios - CIBW_ARCHS: all + CIBW_PLATFORM: ${{ matrix.platform }} + CIBW_ARCHS: ${{ matrix.archs || 'auto' }} - uses: actions/upload-artifact@v4 with: - name: wheels-ios + name: wheels-${{ matrix.platform }}-${{ matrix.os }} path: dist/*.whl diff --git a/pyproject.toml b/pyproject.toml index 0f331d9..55727c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,6 +63,9 @@ build-frontend = {name = "build", args = ["--exports", "whole_archive"]} build-frontend = "build" xbuild-tools = ["cmake", "ninja"] +[tool.cibuildwheel.android] +build-frontend = "build" + [tool.ruff.lint] extend-select = [ "B", # flake8-bugbear