From bfbe87b66a399b38cdd87f1bf822f2d11629baa0 Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Sun, 3 Nov 2019 20:40:41 +0100 Subject: [PATCH 1/2] actions: cache --- .github/workflows/gradle.yml | 12 ++++++++++++ .github/workflows/pr.yml | 18 ++++++++++++++++++ .github/workflows/push.yml | 18 ++++++++++++++++++ .github/workflows/scraper.yml | 6 ++++++ 4 files changed, 54 insertions(+) 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: From 2e50bda0b544d31f334f33a29c26df48e049c0b6 Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Thu, 7 Nov 2019 14:33:22 +0100 Subject: [PATCH 2/2] actions: Update cache action --- .github/workflows/gradle.yml | 4 ++-- .github/workflows/pr.yml | 6 +++--- .github/workflows/push.yml | 6 +++--- .github/workflows/scraper.yml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 8b80005de5..7ba0d7f630 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 612835ef24..cb453b34f6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} @@ -43,7 +43,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} @@ -66,7 +66,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3da3663bf0..e15c5509c2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} @@ -58,7 +58,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index fecdf52803..27c0a700a9 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@preview + - uses: actions/cache@v1 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}