Skip to content

Commit

Permalink
build: improve compiler bridge caching in github actions (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph authored Jul 15, 2021
1 parent c197b5a commit 852a97b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,16 @@ jobs:
with:
fetch-depth: 0

- name: Checkout GitHub merge
if: github.event.pull_request
run: |-
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch
- name: Set up JDK ${{ matrix.jdk-version }}
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@${{ matrix.jdk-version }}

- name: Cache Coursier cache
uses: coursier/cache-action@v5
with:
# add marker for the target scala-version, so that compiler bridge can be cached
extraKey: ${{ matrix.jdk-version }}-${{ matrix.scala-version }}

- name: Compile and test for JDK ${{ matrix.jdk-version }}, Scala ${{ matrix.scala-version }}
run: sbt -J-XX:ReservedCodeCacheSize=256M ++${{ matrix.scala-version }} test
Expand All @@ -92,6 +89,9 @@ jobs:

- name: Cache Coursier cache
uses: coursier/cache-action@v5
with:
# add marker that this build uses cross building, so hopefully all compiler bridges will be cached
extraKey: cross

- name: Publish
run: sbt ci-release
Expand Down

0 comments on commit 852a97b

Please sign in to comment.