File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ concurrency:
2727jobs :
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"
Original file line number Diff line number Diff line change 4343 with :
4444 swap-size-gb : 10
4545 - name : Initialize CodeQL
46- uses : github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
46+ uses : github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4747 with :
4848 languages : ${{ matrix.language }}
4949 - name : Set up JDK 17
5757 echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
5858 ./gradlew assembleDebug
5959 - name : Perform CodeQL Analysis
60- uses : github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
60+ uses : github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
Original file line number Diff line number Diff line change 4242
4343 # Upload the results to GitHub's code scanning dashboard.
4444 - name : " Upload to code-scanning"
45- uses : github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
45+ uses : github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4646 with :
4747 sarif_file : results.sarif
You canβt perform that action at this time.
0 commit comments