Bump com.google.devtools.ksp from 2.0.21-1.0.26 to 2.0.21-1.0.28 in t… #1035
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 CI | |
on: [ push ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unit_tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Android Build | |
uses: ./.github/actions/setup-android-build | |
- name: Run Tests | |
run: ./gradlew testDebugUnitTest testPinboardapiDebugUnitTest --stacktrace | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Android Build | |
uses: ./.github/actions/setup-android-build | |
- name: Build | |
run: ./gradlew assemblePinboardapi --stacktrace | |
- name: Upload Pinboard API APK | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
path: app/build/outputs/apk/pinboardapi/debug/*.apk | |
instrumented_tests: | |
name: Instrumented Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
needs: [ unit_tests, build ] | |
steps: | |
- name: Enable KVM group perms | |
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 | |
ls /dev/kvm | |
- name: Project Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Android Build | |
uses: ./.github/actions/setup-android-build | |
- name: Install GMD image | |
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager "system-images;android-33;aosp_atd;arm64-v8a" | |
- name: Accept Android licenses | |
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true | |
- name: Run instrumented tests | |
run: ./gradlew pixel8api34PinboardapiDebugAndroidTest | |
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | |
-Pandroid.experimental.androidTest.numManagedDeviceShards=1 | |
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1 |