fix: Include JDK version in the cache key #272
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-22.04 | |
| java: 17 | |
| distribution: temurin | |
| - os: macos-14 | |
| java: 17 | |
| distribution: zulu | |
| - os: windows-2022 | |
| java: 17 | |
| distribution: temurin | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: ${{ matrix.distribution }} | |
| java-version: ${{ matrix.java }} | |
| cache: sbt | |
| - uses: ./ | |
| - name: Build and test root | |
| shell: bash | |
| run: sbt -v +test | |
| - name: Build and test sbt 2 | |
| shell: bash | |
| run: | | |
| pushd example | |
| sbt -v test | |
| sbt -v test | |
| popd |