From 934466fe7be9d3df1383780239cc7bdaa1ec41ad Mon Sep 17 00:00:00 2001 From: Grebennikov Roman Date: Tue, 17 May 2022 11:39:07 +0200 Subject: [PATCH 1/4] use proper cache key for build.sbt --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dc36f2..f788bfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: cache-name: cache-sbt with: path: ~/.m2 ~/.coursier ~/.cache/coursier ~/.ivy2 ~/.sbt - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.sbt') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- From cf93ed96ca0302a44b1b0d14398de3d711ee71de Mon Sep 17 00:00:00 2001 From: Grebennikov Roman Date: Tue, 17 May 2022 11:42:01 +0200 Subject: [PATCH 2/4] add /project to cache key --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f788bfd..2f1a87b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: cache-name: cache-sbt with: path: ~/.m2 ~/.coursier ~/.cache/coursier ~/.ivy2 ~/.sbt - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.sbt') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.sbt', '**/project/**') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- From 686cb1dd8911becf0b6c7046151f0c58f15173e3 Mon Sep 17 00:00:00 2001 From: Grebennikov Roman Date: Tue, 17 May 2022 11:46:28 +0200 Subject: [PATCH 3/4] add jdk and scala to cache key --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f1a87b..254d048 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: cache-name: cache-sbt with: path: ~/.m2 ~/.coursier ~/.cache/coursier ~/.ivy2 ~/.sbt - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.sbt', '**/project/**') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.sbt', '**/project/**') }}-${{ matrix.java }}-${{ matrix.scala }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- From 0e34e91d8c604ccda8902113cf3c9cca601a8701 Mon Sep 17 00:00:00 2001 From: Grebennikov Roman Date: Tue, 17 May 2022 11:49:01 +0200 Subject: [PATCH 4/4] dummy commit to trigger CI --- src/dummy.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/dummy.txt diff --git a/src/dummy.txt b/src/dummy.txt new file mode 100644 index 0000000..e8f9e32 --- /dev/null +++ b/src/dummy.txt @@ -0,0 +1 @@ +trigger ci \ No newline at end of file