diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f16ec08572..8b80005de5 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -10,6 +10,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Update Gradle Wrapper @@ -29,6 +35,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Update Gradle dependencies diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c0752922b0..612835ef24 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -20,6 +20,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Set up JDK 11 @@ -37,6 +43,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Set up JDK 11 @@ -54,6 +66,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Set up JDK 11 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9a5991ea50..3da3663bf0 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,6 +12,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Set up JDK 11 @@ -29,6 +35,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Set up JDK 11 @@ -46,6 +58,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Make gradlew executable run: chmod +x ./gradlew - name: Set up JDK 11 diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 17223979bf..fecdf52803 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -10,6 +10,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@preview + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Set up JDK 11 uses: actions/setup-java@v1 with: