Update sbt to 1.10.6 #440
This file contains 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: Continuous Integration | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
env: | |
JABBA_INDEX: ${{ github.server_url }}/${{ github.repository }}/raw/${{ github.sha }}/index.json | |
jobs: | |
build: | |
name: Build and Test | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
java: | |
- temurin@23 | |
- temurin@22 | |
- temurin@21 | |
- temurin@17 | |
- temurin@11 | |
- temurin@8 | |
- graalvm@23 | |
- graalvm@22 | |
- graalvm@21 | |
- graalvm@17 | |
- openj9@23 | |
- openj9@22 | |
- openj9@21 | |
- openj9@17 | |
- openj9@11 | |
- openj9@8 | |
- corretto@23 | |
- corretto@22 | |
- corretto@21 | |
- corretto@17 | |
- corretto@11 | |
- corretto@8 | |
- oracle@23 | |
- oracle@22 | |
- oracle@21 | |
- oracle@17 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Ignore line ending differences in git | |
if: contains(runner.os, 'windows') | |
shell: bash | |
run: git config --global core.autocrlf false | |
- name: Checkout current branch (full) | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java and Scala | |
uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Cache sbt | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.sbt | |
~/.ivy2/cache | |
~/.coursier/cache/v1 | |
~/.cache/coursier/v1 | |
~/AppData/Local/Coursier/Cache/v1 | |
~/Library/Caches/Coursier/v1 | |
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Check if the JDK index is up to date | |
shell: bash | |
run: sbt checkIndex | |
download: | |
name: Download and Test | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
distribution: [ temurin, graalvm, openj9, corretto, oracle ] | |
version: [ 8, 11, 17, 21, 22, 23 ] | |
exclude: | |
- os: macos-latest | |
distribution: temurin | |
version: 8 | |
- distribution: graalvm | |
version: 11 | |
- distribution: graalvm | |
version: 8 | |
- os: macos-latest | |
distribution: openj9 | |
version: 8 | |
- distribution: oracle | |
version: 11 | |
- distribution: oracle | |
version: 8 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout current branch | |
uses: actions/checkout@v4 | |
- name: Download Java | |
id: download-java | |
uses: typelevel/download-java@v2 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.version }} | |
index: ${{ github.server_url }}/${{ github.repository }}/raw/${{ github.sha }}/index | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'jdkfile' | |
java-version: ${{ matrix.version }} | |
jdkFile: ${{ steps.download-java.outputs.jdkFile }} | |
- run: java -version |