diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f16ec08572..7ba0d7f630 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -10,6 +10,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@v1 + 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@v1 + 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..cb453b34f6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -20,6 +20,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@v1 + 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@v1 + 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@v1 + 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 171230c2b1..2195e57242 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,6 +12,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@v1 + 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@v1 + 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@v1 + 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..27c0a700a9 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -10,6 +10,12 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@v1 + 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: