Skip to content

Commit dc97bed

Browse files
committed
ci: bound Gradle worker concurrency
1 parent 31ab37a commit dc97bed

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/android.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ env:
3131
CI: true
3232
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
3333
JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
34-
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Djava.awt.headless=true
34+
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=4 -Djava.awt.headless=true
3535
ANDROID_HOME: /opt/android-sdk
3636
ANDROID_SDK_ROOT: /opt/android-sdk
3737
JAVA_HOME: /usr/lib/jvm/java-26-openjdk
@@ -67,7 +67,7 @@ jobs:
6767

6868
- name: Build debug APK
6969
timeout-minutes: 15
70-
run: ./gradlew --build-cache --stacktrace :app:assembleDebug
70+
run: ./gradlew --no-daemon --build-cache --stacktrace :app:assembleDebug
7171

7272
- name: Upload debug APK
7373
if: ${{ github.ref != 'refs/heads/main' }}
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Run lint
9292
timeout-minutes: 15
93-
run: ./gradlew --build-cache --stacktrace :player:lintDebug :app:lintDebug
93+
run: ./gradlew --no-daemon --build-cache --stacktrace :player:lintDebug :app:lintDebug
9494

9595
- name: Upload lint report
9696
if: ${{ always() }}
@@ -115,7 +115,7 @@ jobs:
115115

116116
- name: Run unit tests
117117
timeout-minutes: 10
118-
run: ./gradlew --build-cache --stacktrace :app:testDebugUnitTest
118+
run: ./gradlew --no-daemon --build-cache --stacktrace :app:testDebugUnitTest
119119

120120
release:
121121
needs:
@@ -162,7 +162,7 @@ jobs:
162162
163163
- name: Build release APK
164164
timeout-minutes: 25
165-
run: ./gradlew --build-cache --stacktrace :app:assembleRelease
165+
run: ./gradlew --no-daemon --build-cache --stacktrace :app:assembleRelease
166166

167167
- name: Prepare APK artifact
168168
run: |

0 commit comments

Comments
 (0)