Skip to content

Commit

Permalink
ci: update action versions, change jdk to 17 for all workflows, relea…
Browse files Browse the repository at this point in the history
…se for 11
  • Loading branch information
ThijsBroersen committed Oct 13, 2024
1 parent 84a654c commit 24b1e0c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
distribution: zulu
java-version: 17
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
Expand All @@ -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/[email protected]
with:
distribution: zulu
java-version: 17
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check Document Generation
Expand All @@ -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-[email protected]
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
Expand All @@ -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/[email protected]
with:
distribution: zulu
java-version: 17
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Release artifacts
Expand Down
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 24b1e0c

Please sign in to comment.