|
7 | 7 |
|
8 | 8 | # Enrich gradle.properties for CI/CD
|
9 | 9 | env:
|
10 |
| - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -XX:MaxPermSize=512m -Dkotlin.daemon.jvm.options="-Xmx2g" -Dkotlin.incremental=false |
| 10 | + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1g" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false |
11 | 11 | CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
|
12 | 12 |
|
13 | 13 | jobs:
|
14 | 14 | check:
|
15 | 15 | name: Project Check Suite
|
16 | 16 | runs-on: ubuntu-latest
|
17 | 17 | steps:
|
18 |
| - - uses: actions/checkout@v3 |
| 18 | + - uses: actions/checkout@v4 |
19 | 19 | - name: Run code quality check suite
|
20 | 20 | run: ./tools/check/check_code_quality.sh
|
21 | 21 |
|
|
24 | 24 | name: Knit
|
25 | 25 | runs-on: ubuntu-latest
|
26 | 26 | steps:
|
27 |
| - - uses: actions/checkout@v3 |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + - name: Use JDK 17 |
| 29 | + uses: actions/setup-java@v4 |
| 30 | + with: |
| 31 | + distribution: 'temurin' # See 'Supported distributions' for available options |
| 32 | + java-version: '17' |
| 33 | + - name: Configure gradle |
| 34 | + uses: gradle/actions/setup-gradle@v3 |
| 35 | + with: |
| 36 | + cache-read-only: ${{ github.ref != 'refs/heads/develop' }} |
28 | 37 | - name: Run knit
|
29 | 38 | run: |
|
30 | 39 | ./gradlew knitCheck $CI_GRADLE_ARG_PROPERTIES
|
|
38 | 47 | group: ${{ github.ref == 'refs/heads/main' && format('lint-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('lint-develop-{0}', github.sha) || format('lint-{0}', github.ref) }}
|
39 | 48 | cancel-in-progress: true
|
40 | 49 | steps:
|
41 |
| - - uses: actions/checkout@v3 |
| 50 | + - uses: actions/checkout@v4 |
| 51 | + - name: Use JDK 17 |
| 52 | + uses: actions/setup-java@v4 |
| 53 | + with: |
| 54 | + distribution: 'temurin' # See 'Supported distributions' for available options |
| 55 | + java-version: '17' |
| 56 | + - name: Configure gradle |
| 57 | + uses: gradle/actions/setup-gradle@v3 |
| 58 | + with: |
| 59 | + cache-read-only: ${{ github.ref != 'refs/heads/develop' }} |
42 | 60 | - name: Run ktlint
|
43 | 61 | run: |
|
44 | 62 | ./gradlew ktlintCheck $CI_GRADLE_ARG_PROPERTIES --continue
|
@@ -83,7 +101,16 @@ jobs:
|
83 | 101 | group: ${{ github.ref == 'refs/heads/main' && format('dep-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('dep-develop-{0}', github.sha) || format('dep-{0}', github.ref) }}
|
84 | 102 | cancel-in-progress: true
|
85 | 103 | steps:
|
86 |
| - - uses: actions/checkout@v3 |
| 104 | + - uses: actions/checkout@v4 |
| 105 | + - name: Use JDK 17 |
| 106 | + uses: actions/setup-java@v4 |
| 107 | + with: |
| 108 | + distribution: 'temurin' # See 'Supported distributions' for available options |
| 109 | + java-version: '17' |
| 110 | + - name: Configure gradle |
| 111 | + uses: gradle/actions/setup-gradle@v3 |
| 112 | + with: |
| 113 | + cache-read-only: ${{ github.ref != 'refs/heads/develop' }} |
87 | 114 | - name: Dependency analysis
|
88 | 115 | run: ./gradlew dependencyCheckAnalyze $CI_GRADLE_ARG_PROPERTIES
|
89 | 116 | - name: Upload dependency analysis
|
|
0 commit comments