Skip to content

Commit

Permalink
Use setup gradle instead of gradle-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rafsanjani committed Nov 21, 2024
1 parent d9130a3 commit 80fd450
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: 'zulu'
cache: gradle

- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Make gradle wrapper executable
run: chmod +x gradlew
Expand All @@ -42,20 +35,14 @@ jobs:
uses: actions/checkout@v4

- name: set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: 'zulu'
cache: gradle

- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4


- name: Enable KVM
Expand Down

0 comments on commit 80fd450

Please sign in to comment.