Bumped Gradle wrapper to 8.10 #263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android build | |
on: [ push ] | |
jobs: | |
BuildAndTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
if: ${{ matrix.os != 'self-hosted' }} | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: ./gradlew ciBuildAndTest --stacktrace | |
Device: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest ] | |
managed-virtual-device: [ 27, 28, 29, 30, 31, 32, 33, 34 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable KVM group perms | |
if: contains(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 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
if: ${{ matrix.os != 'self-hosted' }} | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: ./gradlew ciSdkManagerLicenses --stacktrace | |
- run: ./gradlew managedVirtualDevice${{ matrix.managed-virtual-device }}DebugAndroidTest | |
-Pandroid.testInstrumentationRunnerArguments.class=siarhei.luskanau.managed.virtual.device.ExampleInstrumentedTest | |
-Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect | |
--stacktrace |