Updated kotlin version to 1.8.22 and AGP to 8.2.1 #110
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: [ self-hosted, macos-latest, ubuntu-latest, windows-latest ] | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
if: ${{ matrix.os != 'self-hosted' }} | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: ciBuildAndTest --stacktrace | |
Device: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# os: [ self-hosted, macos-latest ] | |
os: [ macos-latest ] | |
managed-virtual-device: [ 27, 28, 29, 30, 31, 32, 33, 34 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
if: ${{ matrix.os != 'self-hosted' }} | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: ciSdkManagerLicenses --stacktrace | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: managedVirtualDevice${{ matrix.managed-virtual-device }}DebugAndroidTest | |
--no-parallel --max-workers=1 | |
-Pandroid.testInstrumentationRunnerArguments.class=siarhei.luskanau.managed.virtual.device.ExampleInstrumentedTest | |
-Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect | |
--stacktrace |