Skip to content

ci: add Android wheels / tests #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/cibw-cc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading