From 48e6cca7b5ab6e03474a313a52a54c7b464a2662 Mon Sep 17 00:00:00 2001 From: Philip Wedemann <22521688+hfhbd@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:40:28 +0100 Subject: [PATCH] Use ubuntu for Android integration test (#311) Co-authored-by: hfhbd --- .github/workflows/AndroidIntegrationTest.yml | 31 ++++++++++++++++++++ .github/workflows/CI.yml | 16 ---------- 2 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/AndroidIntegrationTest.yml diff --git a/.github/workflows/AndroidIntegrationTest.yml b/.github/workflows/AndroidIntegrationTest.yml new file mode 100644 index 0000000..8373516 --- /dev/null +++ b/.github/workflows/AndroidIntegrationTest.yml @@ -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 diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5319ab8..2569eb3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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