From 38cafb196a106e5d4da1b824c038d4d8d479ffa9 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 7 Nov 2019 16:01:54 +0100 Subject: [PATCH 1/3] Add gradle caching for github actions --- .github/workflows/deployment.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 31ade77aedf..865a66de493 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -46,6 +46,10 @@ jobs: uses: actions/setup-java@v1 with: java-version: 12.0.2 + - uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - name: Download jpackage # We need to download jpackage from https://jdk.java.net/jpackage/ run: | From 25820ec99589147b1a266ac7bb6fdc343c2f7b82 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 7 Nov 2019 16:28:47 +0100 Subject: [PATCH 2/3] Add restore key --- .github/workflows/deployment.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 865a66de493..66d72743b23 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -50,6 +50,10 @@ jobs: with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.OS }}-build-${{ env.cache-name }}- + ${{ runner.OS }}-build- + ${{ runner.OS }}- - name: Download jpackage # We need to download jpackage from https://jdk.java.net/jpackage/ run: | From 40423f6173bdfb41c2aab837584c1c913b7a57a8 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 7 Nov 2019 16:29:18 +0100 Subject: [PATCH 3/3] fix name --- .github/workflows/deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 66d72743b23..59523d9afff 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -51,8 +51,8 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: | - ${{ runner.OS }}-build-${{ env.cache-name }}- - ${{ runner.OS }}-build- + ${{ runner.OS }}-gradle-${{ env.cache-name }}- + ${{ runner.OS }}-gradle- ${{ runner.OS }}- - name: Download jpackage # We need to download jpackage from https://jdk.java.net/jpackage/