mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
* chore(deps): bump the actions group across 1 directory with 2 updates Bumps the actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance). Updates `actions/checkout` from 1 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v1...v5) Updates `actions/attest-build-provenance` from 2 to 3 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/attest-build-provenance dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * Update .github/workflows/ci.yml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
88 lines
2.2 KiB
YAML
88 lines
2.2 KiB
YAML
name: CIBW
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- stable
|
|
- v*
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-wasm-emscripten:
|
|
name: Pyodide wheel
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- uses: pypa/cibuildwheel@v3.1
|
|
env:
|
|
PYODIDE_BUILD_EXPORTS: whole_archive
|
|
with:
|
|
package-dir: tests
|
|
only: cp312-pyodide_wasm32
|
|
|
|
build-ios:
|
|
name: iOS wheel ${{ matrix.runs-on }}
|
|
runs-on: ${{ matrix.runs-on }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runs-on: [macos-14, macos-13]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
# We have to uninstall first because GH is now using a local tap to build cmake<4, iOS needs cmake>=4
|
|
- run: brew uninstall cmake && brew install cmake
|
|
|
|
- uses: pypa/cibuildwheel@v3.1
|
|
env:
|
|
CIBW_PLATFORM: ios
|
|
CIBW_SKIP: cp314-* # https://github.com/pypa/cibuildwheel/issues/2494
|
|
with:
|
|
package-dir: tests
|
|
|
|
build-android:
|
|
name: Android wheel ${{ matrix.runs-on }}
|
|
runs-on: ${{ matrix.runs-on }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runs-on: [macos-latest, macos-13, ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
# GitHub Actions can't currently run the Android emulator on macOS.
|
|
- name: Skip Android tests on macOS
|
|
if: contains(matrix.runs-on, 'macos')
|
|
run: echo "CIBW_TEST_COMMAND=" >> "$GITHUB_ENV"
|
|
|
|
# https://github.blog/changelog/2024-04-02-github-actions-hardware-accelerated-android-virtualization-now-available/
|
|
- name: Enable KVM for Android emulator
|
|
if: contains(matrix.runs-on, 'ubuntu')
|
|
run: |
|
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
|
sudo udevadm control --reload-rules
|
|
sudo udevadm trigger --name-match=kvm
|
|
|
|
- run: pipx install patchelf
|
|
|
|
- uses: pypa/cibuildwheel@v3.1
|
|
env:
|
|
CIBW_PLATFORM: android
|
|
with:
|
|
package-dir: tests
|