diff --git a/.forgejo/workflows/build-apk.yml b/.forgejo/workflows/build-apk.yml index 6e34f9c..1e02585 100644 --- a/.forgejo/workflows/build-apk.yml +++ b/.forgejo/workflows/build-apk.yml @@ -35,6 +35,10 @@ jobs: env: GRADLE_USER_HOME: /opt/cache/gradle npm_config_cache: /opt/cache/npm + # Applies to EVERY JVM the build spawns (Gradle workers, artifact transforms, + # Kotlin daemon) — the runner container has no IPv6 route, so without this the + # transform workers try dl.google.com over IPv6 and get "Network is unreachable". + JAVA_TOOL_OPTIONS: "-Djava.net.preferIPv4Stack=true" steps: - uses: actions/checkout@v4