srctree

Robin Linden parent 3ae1ad08 522a2581
Run the Android test CI step on Ubuntu instead of macOS

This should be ~2x faster than using macOS.
.github/workflows/ci.yaml added: 15, removed: 8, total 7
@@ -49,13 +49,6 @@ jobs:
- run: ./gradlew assembleDebug
- run: ./gradlew assembleRelease
- run: ./gradlew build
- name: Run Android tests
if: startsWith(matrix.os, 'macos')
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
arch: x86_64
script: ./gradlew connectedCheck || { adb logcat -d; exit 1; }
- name: Upload apk
if: startsWith(matrix.os, 'ubuntu')
uses: actions/upload-artifact@v4
@@ -63,6 +56,20 @@ jobs:
name: atox-debug.apk
path: ./atox/build/outputs/apk/debug/atox-debug.apk
if-no-files-found: error
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
- name: Enable hardware acceleration
if: startsWith(matrix.os, '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
- name: Run Android tests
if: startsWith(matrix.os, 'ubuntu')
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
arch: x86_64
script: ./gradlew connectedCheck || { adb logcat -d; exit 1; }
 
tox4j:
runs-on: ubuntu-22.04