mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Re-enable Android tests in CIBW workflow (#6001)
* Re-enable Android tests in CIBW workflow * Skip subprocess tests on Android * Remove Android workarounds no longer necessary with current cibuildwheel version * Skip more subprocess tests on Android
This commit is contained in:
18
.github/workflows/tests-cibw.yml
vendored
18
.github/workflows/tests-cibw.yml
vendored
@@ -70,24 +70,6 @@ jobs:
|
||||
if: contains(matrix.runs-on, 'macos')
|
||||
run: echo "CIBW_TEST_COMMAND=" >> "$GITHUB_ENV"
|
||||
|
||||
# Temporarily disable Android tests on ubuntu-latest due to emulator issues.
|
||||
# See https://github.com/pybind/pybind11/pull/5914.
|
||||
- name: "NOTE: Android tests are disabled on ubuntu-latest"
|
||||
if: contains(matrix.runs-on, 'ubuntu')
|
||||
run: |
|
||||
echo "CIBW_TEST_COMMAND=" >> "$GITHUB_ENV"
|
||||
echo '::warning::Android cibuildwheel tests are disabled on ubuntu-latest (CIBW_TEST_COMMAND is empty). See PR 5914.'
|
||||
|
||||
# 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.3
|
||||
env:
|
||||
CIBW_PLATFORM: android
|
||||
|
||||
Reference in New Issue
Block a user