CI: force IPv4 for Gradle (runner container lacks IPv6 -> dl.google.com unreachable)
Some checks failed
build-apk / build (push) Failing after 53m53s
Some checks failed
build-apk / build (push) Failing after 53m53s
react-native-edge-to-edge's buildscript needs com.android.tools.build:gradle:8.1.1 from Google Maven; the runner's container has no IPv6 route so the AAAA lookup was "Network is unreachable". Pass -Djava.net.preferIPv4Stack=true to Gradle. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
3d1505d2e7
commit
7970678b90
1 changed files with 4 additions and 1 deletions
|
|
@ -51,7 +51,10 @@ jobs:
|
|||
BBP_UPLOAD_STORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||
BBP_UPLOAD_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||
BBP_UPLOAD_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
run: ./gradlew :app:assembleRelease -PreactNativeArchitectures=arm64-v8a --no-daemon
|
||||
# Force IPv4: the runner's container has no IPv6 route, so dl.google.com
|
||||
# (Google Maven) is "Network is unreachable" over its default AAAA record.
|
||||
GRADLE_OPTS: "-Djava.net.preferIPv4Stack=true -Dorg.gradle.jvmargs=-Djava.net.preferIPv4Stack=true"
|
||||
run: ./gradlew :app:assembleRelease -PreactNativeArchitectures=arm64-v8a --no-daemon -Djava.net.preferIPv4Stack=true
|
||||
|
||||
# Self-contained publish via the Forgejo API (no external action to fetch).
|
||||
- name: Publish release + upload APK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue