Skip to content

Commit

Permalink
switch to corretto jdk for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
softinio committed Dec 30, 2023
1 parent bca3715 commit 015733b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.13.12]
java: [temurin@21]
java: [corretto@21]
project: [rootJVM]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -38,21 +38,21 @@ jobs:
with:
fetch-depth: 0

- name: Download Java (temurin@21)
id: download-java-temurin-21
if: matrix.java == 'temurin@21'
- name: Download Java (corretto@21)
id: download-java-corretto-21
if: matrix.java == 'corretto@21'
uses: typelevel/download-java@v1
with:
distribution: temurin
distribution: corretto
java-version: 21

- name: Setup Java (temurin@21)
if: matrix.java == 'temurin@21'
- name: Setup Java (corretto@21)
if: matrix.java == 'corretto@21'
uses: actions/setup-java@v2
with:
distribution: jdkfile
java-version: 21
jdkFile: ${{ steps.download-java-temurin-21.outputs.jdkFile }}
jdkFile: ${{ steps.download-java-corretto-21.outputs.jdkFile }}

- name: Cache sbt
uses: actions/cache@v2
Expand All @@ -70,18 +70,18 @@ jobs:
run: sbt githubWorkflowCheck

- name: Check headers and formatting
if: matrix.java == 'temurin@21'
if: matrix.java == 'corretto@21'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck

- name: Test
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test

- name: Check binary compatibility
if: matrix.java == 'temurin@21'
if: matrix.java == 'corretto@21'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues

- name: Generate API documentation
if: matrix.java == 'temurin@21'
if: matrix.java == 'corretto@21'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc

site:
Expand All @@ -90,29 +90,29 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.13.12]
java: [temurin@21]
java: [corretto@21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Download Java (temurin@21)
id: download-java-temurin-21
if: matrix.java == 'temurin@21'
- name: Download Java (corretto@21)
id: download-java-corretto-21
if: matrix.java == 'corretto@21'
uses: typelevel/download-java@v1
with:
distribution: temurin
distribution: corretto
java-version: 21

- name: Setup Java (temurin@21)
if: matrix.java == 'temurin@21'
- name: Setup Java (corretto@21)
if: matrix.java == 'corretto@21'
uses: actions/setup-java@v2
with:
distribution: jdkfile
java-version: 21
jdkFile: ${{ steps.download-java-temurin-21.outputs.jdkFile }}
jdkFile: ${{ steps.download-java-corretto-21.outputs.jdkFile }}

- name: Cache sbt
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ThisBuild / githubWorkflowPublishTargetBranches := Seq()
// publish website from this branch
ThisBuild / tlSitePublishBranch := Some("main")

ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("21"))
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.corretto("21"))

val Scala213 = "2.13.12"
ThisBuild / crossScalaVersions := Seq(Scala213)
Expand Down

0 comments on commit 015733b

Please sign in to comment.