File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,11 +15,20 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@v5
18- - name : set up JDK 17
18+ - name : Cache gradle
19+ uses : actions/cache@v4
20+ with :
21+ path : |
22+ ~/.gradle/caches
23+ ~/.gradle/wrapper
24+ key : ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
25+ restore-keys : |
26+ ${{ runner.os }}-gradle-
27+ - name : set up JDK 21
1928 uses : actions/setup-java@v5
2029 with :
21- java-version : ' 17 '
22- distribution : ' zulu '
30+ java-version : ' 21 '
31+ distribution : ' adopt '
2332 cache : ' gradle'
2433 - name : Grant execute permission for gradlew
2534 run : chmod +x gradlew
Original file line number Diff line number Diff line change @@ -37,11 +37,20 @@ jobs:
3737 id-token : ' write'
3838 steps :
3939 - uses : actions/checkout@v5
40- - name : set up JDK 17
40+ - name : Cache gradle
41+ uses : actions/cache@v4
42+ with :
43+ path : |
44+ ~/.gradle/caches
45+ ~/.gradle/wrapper
46+ key : ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
47+ restore-keys : |
48+ ${{ runner.os }}-gradle-
49+ - name : set up JDK 21
4150 uses : actions/setup-java@v5
4251 with :
43- java-version : ' 17 '
44- distribution : ' zulu '
52+ java-version : ' 21 '
53+ distribution : ' adopt '
4554 cache : ' gradle'
4655 - name : Grant execute permission for gradlew
4756 run : chmod +x gradlew
You can’t perform that action at this time.
0 commit comments