Harden Forgejo release build against Kotlin daemon crashes.
Some checks failed
Forgejo Release Builder / release (push) Failing after 18m4s
Some checks failed
Forgejo Release Builder / release (push) Failing after 18m4s
Force in-process Kotlin compilation, disable daemon use, and reduce workers to lower memory pressure in containerized CI.
This commit is contained in:
parent
688b796e59
commit
d6be3d1351
1 changed files with 11 additions and 4 deletions
|
|
@ -100,16 +100,23 @@ jobs:
|
|||
printf 'sdk.dir=%s\n' "$ANDROID_HOME" > local.properties
|
||||
fi
|
||||
chmod +x ./gradlew
|
||||
./gradlew --no-daemon --version
|
||||
GRADLE_OPTS="-Xmx2g -XX:MaxMetaspaceSize=768m -Dkotlin.daemon.enabled=false -Dkotlin.compiler.execution.strategy=in-process" \
|
||||
./gradlew --no-daemon --max-workers=1 --version
|
||||
|
||||
- name: Check code format
|
||||
run: ./gradlew --no-daemon --max-workers=2 spotlessCheck
|
||||
run: |
|
||||
GRADLE_OPTS="-Xmx2g -XX:MaxMetaspaceSize=768m -Dkotlin.daemon.enabled=false -Dkotlin.compiler.execution.strategy=in-process" \
|
||||
./gradlew --no-daemon --max-workers=1 spotlessCheck
|
||||
|
||||
- name: Build app
|
||||
run: ./gradlew --no-daemon --max-workers=2 assembleRelease -Penable-updater
|
||||
run: |
|
||||
GRADLE_OPTS="-Xmx2g -XX:MaxMetaspaceSize=768m -Dkotlin.daemon.enabled=false -Dkotlin.compiler.execution.strategy=in-process" \
|
||||
./gradlew --no-daemon --max-workers=1 assembleRelease -Penable-updater
|
||||
|
||||
- name: Run unit tests
|
||||
run: ./gradlew --no-daemon --max-workers=2 testReleaseUnitTest
|
||||
run: |
|
||||
GRADLE_OPTS="-Xmx2g -XX:MaxMetaspaceSize=768m -Dkotlin.daemon.enabled=false -Dkotlin.compiler.execution.strategy=in-process" \
|
||||
./gradlew --no-daemon --max-workers=1 testReleaseUnitTest
|
||||
|
||||
- name: Rename release artifacts
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue