diff --git a/.github/workflows/api-28.yml b/.github/workflows/api-28.yml new file mode 100644 index 0000000..f06d02a --- /dev/null +++ b/.github/workflows/api-28.yml @@ -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 diff --git a/.github/workflows/api-29.yml b/.github/workflows/api-29.yml new file mode 100644 index 0000000..f06d02a --- /dev/null +++ b/.github/workflows/api-29.yml @@ -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 diff --git a/.github/workflows/api-30.yml b/.github/workflows/api-30.yml new file mode 100644 index 0000000..af273ea --- /dev/null +++ b/.github/workflows/api-30.yml @@ -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 diff --git a/.github/workflows/api-31.yml b/.github/workflows/api-31.yml new file mode 100644 index 0000000..186fb07 --- /dev/null +++ b/.github/workflows/api-31.yml @@ -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 diff --git a/.github/workflows/api-32.yml b/.github/workflows/api-32.yml new file mode 100644 index 0000000..32b9f57 --- /dev/null +++ b/.github/workflows/api-32.yml @@ -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 diff --git a/.github/workflows/api-33.yml b/.github/workflows/api-33.yml new file mode 100644 index 0000000..72355b2 --- /dev/null +++ b/.github/workflows/api-33.yml @@ -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 diff --git a/fuse/build.gradle.kts b/fuse/build.gradle.kts index 9258a2a..34403bc 100644 --- a/fuse/build.gradle.kts +++ b/fuse/build.gradle.kts @@ -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) {