Skip to content

Commit

Permalink
feat: Add caching for Android SDK (#99)
Browse files Browse the repository at this point in the history
airicbear authored Jun 8, 2024
1 parent 4b7a2f5 commit 4edb706
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
@@ -43,6 +43,24 @@ jobs:
with:
java-version: "17"
distribution: "temurin"
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/gradle/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache Android SDK
uses: actions/cache@v4
env:
ANDROID_SDK_ROOT: ~/Library/Android/sdk
with:
path: ${{ env.ANDROID_SDK_ROOT }}
key: ${{ runner.os }}-android-sdk-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/gradle/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-android-sdk-
- name: Decode Keystore
env:
ENCODED_KEYSTORE: ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}

0 comments on commit 4edb706

Please sign in to comment.