From 12d59dccd6dca43dc745e36be029800d3f0cf9c3 Mon Sep 17 00:00:00 2001 From: Glitch Date: Sat, 11 Jul 2020 19:31:20 -0500 Subject: [PATCH 1/4] Update build.yml --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0a60d05..10d331f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,11 +37,11 @@ jobs: with: java-version: 8 - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 with: arguments: checkstyleMain From 8675f7b2a239c34f7d96f2fb0ec1c0b962a39df8 Mon Sep 17 00:00:00 2001 From: Glitch Date: Sat, 11 Jul 2020 19:32:31 -0500 Subject: [PATCH 2/4] Fix (hopefully) final syntax error Thanks, YAML --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10d331f5..37ec5531 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,11 +54,11 @@ jobs: with: java-version: 8 - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 with: arguments: checkLicenses From c542b4e68feb0b525de1ef97ba029fb46adf1064 Mon Sep 17 00:00:00 2001 From: Glitch Date: Sat, 11 Jul 2020 19:46:17 -0500 Subject: [PATCH 3/4] Use separate caches for each job --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37ec5531..f443ec3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-build restore-keys: | ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 @@ -39,7 +39,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-checkstyle restore-keys: | ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 @@ -56,7 +56,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-license restore-keys: | ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 From c1ca0188a143500c320f0244ea667945501fcb08 Mon Sep 17 00:00:00 2001 From: Glitch Date: Sat, 11 Jul 2020 19:49:53 -0500 Subject: [PATCH 4/4] Try another way of keying --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f443ec3f..2af9ce51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-build + key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }} restore-keys: | ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 @@ -39,7 +39,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-checkstyle + key: ${{ runner.os }}-gradle-checkstyle-${{ hashFiles('**/*.gradle*') }} restore-keys: | ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1 @@ -56,7 +56,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-license + key: ${{ runner.os }}-gradle-license-${{ hashFiles('**/*.gradle*') }}-license restore-keys: | ${{ runner.os }}-gradle- - uses: eskatos/gradle-command-action@v1