diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e588ef..a7dfa57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,11 +18,15 @@ jobs: timeout-minutes: 30 steps: - name: Checkout current branch - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 - name: Setup Scala and Java - uses: olafurpg/setup-scala@v11 + uses: actions/setup-java@v4.4.0 + with: + distribution: zulu + java-version: 17 + check-latest: true - name: Cache scala dependencies uses: coursier/cache-action@v6 - name: Lint code @@ -33,9 +37,13 @@ jobs: timeout-minutes: 60 steps: - name: Checkout current branch - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.2.0 - name: Setup Scala and Java - uses: olafurpg/setup-scala@v11 + uses: actions/setup-java@v4.4.0 + with: + distribution: zulu + java-version: 17 + check-latest: true - name: Cache scala dependencies uses: coursier/cache-action@v6 - name: Check Document Generation @@ -47,18 +55,20 @@ jobs: strategy: fail-fast: false matrix: - java: ['zulu@1.17'] + java: ['17'] scala: ['212', '213', '3'] platform: ['JVM', 'JS', 'Native'] steps: - name: Checkout current branch - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 - name: Setup Scala and Java - uses: olafurpg/setup-scala@v11 + uses: actions/setup-java@v4.4.0 with: + distribution: zulu java-version: ${{ matrix.java }} + check-latest: true - name: Install libuv run: sudo apt-get update && sudo apt-get install -y libuv1-dev - name: Cache scala dependencies @@ -80,11 +90,15 @@ jobs: if: github.event_name != 'pull_request' steps: - name: Checkout current branch - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 - name: Setup Scala and Java - uses: olafurpg/setup-scala@v11 + uses: actions/setup-java@v4.4.0 + with: + distribution: zulu + java-version: 17 + check-latest: true - name: Cache scala dependencies uses: coursier/cache-action@v6 - name: Release artifacts diff --git a/build.sbt b/build.sbt index 52bc326..ba64c50 100644 --- a/build.sbt +++ b/build.sbt @@ -28,6 +28,8 @@ val scala212 = "2.12.20" val scala213 = "2.13.15" val scala3 = "3.3.4" +val javaPlatform = "11" + val zioVersion = "2.1.11" // Command aliases for convenience and for CI @@ -61,7 +63,8 @@ lazy val commonSettings = Seq( "UTF-8", "-feature", "-unchecked", - "-language:experimental.macros" + "-language:experimental.macros", + s"-release:$javaPlatform" ) ++ (CrossVersion.partialVersion(scalaVersion.value) match { case Some((2, 12)) => Seq(