From a2bcfde87784e8fd83fb12ee03e024650f5bb114 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Thu, 26 Jan 2023 18:28:31 -0800 Subject: [PATCH] Add matrix.sbt-args to sbt cache keys --- .github/workflows/scala.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index eb2e4db3..50460458 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -37,8 +37,9 @@ jobs: ~/.sbt/ ~/.coursier/ key: | - ${{ runner.os }}-${{matrix.scala}}-${{ hashFiles('**/*.sbt') }} - ${{ runner.os }}-${{matrix.scala}}- + ${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}-${{matrix.sbt-args}} + ${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}- + ${{runner.os}}-${{matrix.scala}}- - name: Run tests run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} test - name: Publish to Maven Central Repository