diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4d60ef5..8dde813 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -27,6 +27,13 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar + - name: Cache Gradle packages + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle + - name: Run tests env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sign.yml b/.github/workflows/sign.yml index 0d25ac1..5114d6b 100644 --- a/.github/workflows/sign.yml +++ b/.github/workflows/sign.yml @@ -21,6 +21,13 @@ jobs: java-version: '17' cache: 'gradle' + - name: Cache Gradle packages + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle + - name: Sign APK env: MEALIENT_KEY_STORE: ${{ secrets.MEALIENT_KEY_STORE }} diff --git a/gradle.properties b/gradle.properties index 1dc1822..aa695b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,4 +18,5 @@ android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": -kotlin.code.style=official \ No newline at end of file +kotlin.code.style=official +org.gradle.caching=true \ No newline at end of file