Skip to content

Commit b43a1b0

Browse files
committed
fix: add emulation and skip
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 5c2c9f7 commit b43a1b0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,26 @@ jobs:
151151
strategy:
152152
fail-fast: false
153153
matrix:
154-
runs-on: [macos-13, macos-latest]
154+
runs-on: [ubuntu-latest, macos-latest]
155155
steps:
156156
- uses: actions/checkout@v4
157157
with:
158158
fetch-depth: 0
159159
submodules: true
160160

161+
# GitHub Actions can't currently run the Android emulator on macOS.
162+
- name: Skip Android tests on macOS
163+
if: contains(matrix.runs-on, 'macos')
164+
run: echo "CIBW_TEST_COMMAND=" >> "$GITHUB_ENV"
165+
166+
# https://github.blog/changelog/2024-04-02-github-actions-hardware-accelerated-android-virtualization-now-available/
167+
- name: Enable KVM for Android emulator
168+
if: contains(matrix.runs-on, 'ubuntu')
169+
run: |
170+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
171+
sudo udevadm control --reload-rules
172+
sudo udevadm trigger --name-match=kvm
173+
161174
- run: pipx install patchelf
162175

163176
- uses: pypa/cibuildwheel@63bdd4f043a77f1bd23b2ba9376972b6dc7b4779

0 commit comments

Comments
 (0)