diff --git a/.github/actions/common-linux-setup/action.yml b/.github/actions/common-linux-setup/action.yml index 3ef75678..d8821a76 100644 --- a/.github/actions/common-linux-setup/action.yml +++ b/.github/actions/common-linux-setup/action.yml @@ -9,8 +9,10 @@ runs: name: Cached Gradle modules with: path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.*') }} + /root/.gradle/caches/** + /root/.gradle/wrapper/** + !/root/.gradle/**.lock + !/root/.gradle/caches/modules-2/gc.properties + key: ${{ runner.os }}-gradle4-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.*', 'buildSrc/**') }} restore-keys: | - ${{ runner.os }}-gradle- + ${{ runner.os }}-gradle4-