Skip to content

Commit 8248fe9

Browse files
committed
Fix Android build
1 parent a18e522 commit 8248fe9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,16 @@ jobs:
3131
steps:
3232
# Checks-out the repository under $GITHUB_WORKSPACE
3333
- uses: actions/checkout@v4
34+
# Set up Java 17
35+
- name: Set up JDK 21
36+
uses: actions/setup-java@v4
37+
with:
38+
distribution: 'adopt'
39+
java-version: '21'
40+
cache: 'maven'
3441
# Set up Android
3542
- name: Setup Android SDK
3643
uses: android-actions/setup-android@v3
37-
- name: Cache mvn dependencies
38-
uses: actions/cache@v4
39-
env:
40-
cache-name: mvn-deps
41-
with:
42-
path: ~/.m2
43-
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
44-
restore-keys: ${{ env.cache-name }}-
4544
- name: Build
4645
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true -Pandroid
4746

0 commit comments

Comments
 (0)