Skip to content

Commit 5ab6d9e

Browse files
πŸ”„ synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
1 parent 01f7428 commit 5ab6d9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

β€Ž.github/workflows/analysis.ymlβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ concurrency:
2727
jobs:
2828
analysis:
2929
runs-on: ubuntu-latest
30-
timeout-minutes: 60
3130
steps:
3231
- name: Disabled on forks
3332
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
@@ -68,10 +67,13 @@ jobs:
6867
- name: Run analysis wrapper
6968
env:
7069
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
71+
# Memory that is set in jvmargs must be wisely chosen.
72+
# E.g. with -Xmx5g and -Xmx1g android talk builds always failed with "The operation was canceled". -Xmx3g seems to work so far.
7173
run: |
7274
mkdir -p "$HOME/.gradle"
7375
{
74-
echo "org.gradle.jvmargs=-Xmx5g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g"
76+
echo "org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g"
7577
echo "org.gradle.configureondemand=true"
7678
echo "kapt.incremental.apt=true"
7779
} > "$HOME/.gradle/gradle.properties"

0 commit comments

Comments
Β (0)