Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
expand on CI tests, using aosp-atd where available
Browse files Browse the repository at this point in the history
breautek committed Aug 13, 2024
1 parent c30b9be commit d6bebf5
Showing 7 changed files with 214 additions and 10 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/api-28.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: True
- name: Enable KVM
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
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api29DebugAndroidTest
35 changes: 35 additions & 0 deletions .github/workflows/api-29.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: True
- name: Enable KVM
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
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api29DebugAndroidTest
35 changes: 35 additions & 0 deletions .github/workflows/api-30.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: True
- name: Enable KVM
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
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api30DebugAndroidTest
35 changes: 35 additions & 0 deletions .github/workflows/api-31.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: True
- name: Enable KVM
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
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api31DebugAndroidTest
35 changes: 35 additions & 0 deletions .github/workflows/api-32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: True
- name: Enable KVM
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
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api32DebugAndroidTest
35 changes: 35 additions & 0 deletions .github/workflows/api-33.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: True
- name: Enable KVM
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
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api33DebugAndroidTest
14 changes: 4 additions & 10 deletions fuse/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -72,12 +72,6 @@ android {

managedDevices {
devices {
register("api27", ManagedVirtualDevice::class) {
device = "Pixel 7"
apiLevel = 27
systemImageSource = "aosp"
}

register("api28", ManagedVirtualDevice::class) {
device = "Pixel 7"
apiLevel = 28
@@ -93,25 +87,25 @@ android {
register("api30", ManagedVirtualDevice::class) {
device = "Pixel 7"
apiLevel = 30
systemImageSource = "aosp"
systemImageSource = "aosp-atd"
}

register("api31", ManagedVirtualDevice::class) {
device = "Pixel 7"
apiLevel = 31
systemImageSource = "aosp"
systemImageSource = "aosp-atd"
}

register("api32", ManagedVirtualDevice::class) {
device = "Pixel 7"
apiLevel = 32
systemImageSource = "aosp"
systemImageSource = "aosp-atd"
}

register("api33", ManagedVirtualDevice::class) {
device = "Pixel 7"
apiLevel = 33
systemImageSource = "aosp"
systemImageSource = "aosp-atd"
}

register("api34", ManagedVirtualDevice::class) {

0 comments on commit d6bebf5

Please sign in to comment.