Skip to content

Commit

Permalink
Merge pull request #58 from cb372/java-21
Browse files Browse the repository at this point in the history
Use more recent versions of Java in CI
  • Loading branch information
cb372 authored Dec 11, 2024
2 parents d6409cb + 44b2610 commit f400d6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- 3.3.3
- 3.4.2
java:
- 1.8
- 1.11
- 11
- 17
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -30,12 +30,11 @@ jobs:
fetch-depth: 0

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v13
uses: actions/setup-java@v4
with:
java-version: adopt@${{ matrix.java }}

- name: Cache sbt
uses: coursier/cache-action@v6
distribution: 'adopt'
java-version: ${{ matrix.java }}
cache: 'sbt'

- name: Test
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
fetch-depth: 0 # fetch all tags to make sbt-dynver work properly

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v13

- name: Cache sbt
uses: coursier/cache-action@v6
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
cache: 'sbt'

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

0 comments on commit f400d6e

Please sign in to comment.