Skip to content

Commit

Permalink
Use ubuntu for Android integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Mar 20, 2024
1 parent ffb8a55 commit 71b3fed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 16 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/AndroidIntegrationTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: AndroidIntegrationTest

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
GRADLE_OPTS: -Dorg.gradle.caching=true

jobs:
androidIntegrationTest:
runs-on: ubuntu-latest
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
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
- name: Run Android integration tests
run: ./gradlew :kotlinx-uuid-core:allDevicesCheck -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect
16 changes: 0 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,3 @@ jobs:
if: success() || failure()
with:
sarif_file: build/reports/detekt/detekt.sarif

androidIntegrationTest:
runs-on: macos-latest
needs:
- build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
- name: Run Android integration tests
run: ./gradlew :kotlinx-uuid-core:allDevicesCheck -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect

0 comments on commit 71b3fed

Please sign in to comment.