Skip to content

Commit ad50fb4

Browse files
committed
Update actions
1 parent 8506e73 commit ad50fb4

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/android-master.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)