fix(ci): optimize Gradle memory settings and fix compiler warnings to resolve runner OOM
Gitea Actions CI/CD Pipeline / build-and-test (push) Successful in 2m35s

This commit is contained in:
2026-08-10 12:15:28 +00:00
parent e4d9cabd76
commit 6d82c53f72
4 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ jobs:
run: chmod +x gradlew
- name: Run Unit Tests
run: ./gradlew test --stacktrace
run: ./gradlew test --no-daemon --stacktrace
- name: Build Debug APK
run: ./gradlew assembleDebug --stacktrace
run: ./gradlew assembleDebug --no-daemon --stacktrace
@@ -53,6 +53,7 @@ class VoiceAssistantService : Service() {
.setPriority(NotificationCompat.PRIORITY_LOW)
.build()
@Suppress("DEPRECATION")
private fun setupMediaSession() {
mediaSession = MediaSessionCompat(this, "VoiceAssistantMediaSession").apply {
setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS or MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS)
@@ -7,6 +7,7 @@ import androidx.compose.runtime.Composable
import com.example.voiceapp.ui.VoiceAppState
@Composable
@Suppress("UNUSED_PARAMETER")
fun ControlBar(state: VoiceAppState, onMicClick: () -> Unit, onClearClick: () -> Unit) {
Row {
Button(onClick = onMicClick) { Text("マイク") }
+6 -2
View File
@@ -8,5 +8,9 @@ android.enableJetifier=true
kapt.incremental.apt=false
kapt.use.worker.api=false
# JVM options
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# Disable daemon and tune JVM memory to prevent container OOM killer from terminating Gradle
org.gradle.daemon=false
org.gradle.jvmargs=-Xmx1536m -XX:MaxMetaspaceSize=512m -XX:+UseG1GC -Dfile.encoding=UTF-8
kotlin.daemon.jvmargs=-Xmx512m -XX:MaxMetaspaceSize=256m
org.gradle.workers.max=2