diff --git a/.github/workflows/actionsBuild.yml b/.github/workflows/actionsBuild.yml index 79187b67..ff308fe9 100644 --- a/.github/workflows/actionsBuild.yml +++ b/.github/workflows/actionsBuild.yml @@ -127,7 +127,7 @@ jobs: Emulator: needs: jobEmulatorMatrixSetup - runs-on: macos-latest + runs-on: ubuntu-latest strategy: fail-fast: false matrix: ${{ fromJson(needs.jobEmulatorMatrixSetup.outputs.emulator_jobs_matrix) }} @@ -135,13 +135,22 @@ jobs: - uses: actions/checkout@v4 + - name: Enable KVM group perms + if: ${{ matrix.os != 'self-hosted' }} + 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/setup-java@v4 if: ${{ matrix.os != 'self-hosted' }} with: distribution: 'temurin' java-version: ${{ env.JAVA_VERSION }} - - uses: android-actions/setup-android@v3 + - uses: gradle/gradle-build-action@v3 + with: + arguments: ciSdkManagerLicenses --stacktrace - uses: gradle/gradle-build-action@v3 with: diff --git a/buildSrc/src/main/kotlin/EmulatorJobsMatrix.kt b/buildSrc/src/main/kotlin/EmulatorJobsMatrix.kt index c8be0142..0b5a94b7 100644 --- a/buildSrc/src/main/kotlin/EmulatorJobsMatrix.kt +++ b/buildSrc/src/main/kotlin/EmulatorJobsMatrix.kt @@ -24,7 +24,6 @@ class EmulatorJobsMatrix { EMULATOR_VERSIONS.mapNotNull { version -> when { ":app" == subProject.path -> listOf( - "ciSdkManagerLicenses", "${subProject.path}:managedVirtualDevice${version}DiDaggerDebugAndroidTest", "${subProject.path}:managedVirtualDevice${version}DiKodeinDebugAndroidTest", "${subProject.path}:managedVirtualDevice${version}DiKoinDebugAndroidTest", @@ -32,7 +31,6 @@ class EmulatorJobsMatrix { ) File(subProject.projectDir, "src${File.separator}androidInstrumentedTest").exists() -> listOf( - "ciSdkManagerLicenses", "${subProject.path}:managedVirtualDevice${version}DebugAndroidTest" ) @@ -46,7 +44,7 @@ class EmulatorJobsMatrix { it.add("-Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect") it.add("-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true") }.also { - if (!true.toString().equals(other = System.getProperty("CI"), ignoreCase = true)) { + if (!true.toString().equals(other = System.getenv("CI"), ignoreCase = true)) { it.add("--enable-display") } }.joinToString(separator = " ") diff --git a/gradle.properties b/gradle.properties index d5fd7698..85e4ef36 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,4 @@ org.gradle.jvmargs=-Xmx3072m -org.gradle.daemon=false kotlin.code.style=official -#kotlin.experimental.tryK2=true android.nonTransitiveRClass=true android.useAndroidX=true -#android.lint.useK2Uast=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0eaf37ac..03644178 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -21,7 +21,7 @@ build-javaVersion = "VERSION_17" build-jvmTarget = "17" coil = "2.6.0" compose-bom = "2024.02.01" -compose-compiler = "1.5.9" +compose-compiler = "1.5.10" dagger = "2.50" detekt = "1.23.5" gitlive-firebase = "1.11.1"