mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
* Fix "🐍 3 • windows-latest • mingw64" job (apparently msys2/setup-msys2@v2 cannot be run twice anymore):
https://github.com/pybind/pybind11/actions/runs/17394902023/job/49417376616?pr=5796
```
Run msys2/setup-msys2@v2
with:
msystem: mingw64
install: mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-scipy mingw-w64-x86_64-eigen3
path-type: minimal
update: false
pacboy: false
release: true
location: RUNNER_TEMP
platform-check-severity: fatal
cache: true
env:
PYTHONDEVMODE: 1
PIP_BREAK_SYSTEM_PACKAGES: 1
PIP_ONLY_BINARY: numpy
FORCE_COLOR: 3
PYTEST_TIMEOUT: 300
VERBOSE: 1
CMAKE_COLOR_DIAGNOSTICS: 1
MSYSTEM: MINGW64
Error: Trying to install MSYS2 to D:\a\_temp\msys64 but that already exists, cannot continue.
```
* Add `pytest.xfail("[TEST-GIL-SCOPED] macOS free-threading...)`
* Change env.SYS_IS_GIL_ENABLED constant to env.sys_is_gil_enabled function
* Change install_mingw64_only → extra_install
* Also xfail if macOS and PY_GIL_DISABLED, show SOABI
* build-ios: brew upgrade|install cmake
* Revert "build-ios: brew upgrade|install cmake"
This reverts commit bd3900ee79.
See also:
https://github.com/pybind/pybind11/pull/5822#issuecomment-3247827317
* Disable build-ios job in tests-cibw.yml
* Remove macos_brew_install_llvm job because it started failing, to reduce our maintenance overhead:
Failures tracked here: https://github.com/pybind/pybind11/pull/5822#issuecomment-3247998220
* Fix iOS build step for cmake installation
Replaced brew upgrade with brew install for cmake.
* Update cmake installation steps in CI workflow
Uninstall cmake before installing the latest version due to GitHub's local tap changes.
* Update .github/workflows/tests-cibw.yml
---------
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@v4
|
|
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@v4
|
|
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@v4
|
|
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
|