Skip to content

Commit

Permalink
github actions: use jdk21 for all builds (#1801)
Browse files Browse the repository at this point in the history
`--release=8` for both javac and scalac ensure that we don't use jdk9+ apis...
  • Loading branch information
mpollmeier authored Jan 10, 2025
1 parent 2007cdb commit d4a6533
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 19
distribution: temurin
java-version: 21
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Compile and run tests
run: sbt +test
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 19
distribution: temurin
java-version: 21
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Check formatting
run: sbt scalafmtCheck Test/scalafmtCheck
Expand Down Expand Up @@ -53,11 +54,12 @@ jobs:
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 11
distribution: temurin
java-version: 21
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Release to Sonatype
run: sbt ciReleaseTagNextVersion ciReleaseSonatype
Expand Down

0 comments on commit d4a6533

Please sign in to comment.