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 88cc801
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,9 @@ jobs:
java-version: '17'
distribution: 'adopt'
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 @@ -48,14 +41,8 @@ jobs:
distribution: 'adopt'
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 88cc801

Please sign in to comment.