CI: force IPv4 on ALL build JVMs via JAVA_TOOL_OPTIONS
All checks were successful
build-apk / build (push) Successful in 16m15s
All checks were successful
build-apk / build (push) Successful in 16m15s
The refactor dropped the command-line -Djava.net.preferIPv4Stack from gradlew, so
artifact-transform/worker JVMs reverted to IPv6 and couldn't reach dl.google.com
("Network is unreachable"). JAVA_TOOL_OPTIONS is inherited by every spawned JVM.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
626e46a55f
commit
30f32bc494
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GRADLE_USER_HOME: /opt/cache/gradle
|
GRADLE_USER_HOME: /opt/cache/gradle
|
||||||
npm_config_cache: /opt/cache/npm
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue