Skip to content

Commit

Permalink
Update scala versions (#2530)
Browse files Browse the repository at this point in the history
* Update scala versions

* Fix

* Update scoverage

* Fix
  • Loading branch information
vigoo authored Dec 21, 2023
1 parent f2f5378 commit 39ec0b5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.18, 2.13.10, 3.3.0]
scala: [2.12.18, 2.13.12, 3.3.1]
java: [graal_graalvm@17, temurin@8]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand Down Expand Up @@ -54,8 +54,8 @@ jobs:
cache: sbt

- name: Check formatting
if: matrix.scala == '2.13.10'
run: sbt ++2.13.10 fmtCheck
if: matrix.scala == '2.13.12'
run: sbt ++2.13.12 fmtCheck

- name: Check that workflows are up to date
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
Expand All @@ -65,10 +65,10 @@ jobs:

- name: Check doc generation
if: ${{ github.event_name == 'pull_request' }}
run: sbt ++2.13.10 doc
run: sbt ++2.13.12 doc

- name: zio-http-shaded Tests
if: matrix.scala == '2.13.10'
if: matrix.scala == '2.13.12'
env:
PUBLISH_SHADED: true
run: sbt '++ ${{ matrix.scala }}' zioHttpShadedTests/test
Expand All @@ -89,7 +89,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10]
scala: [2.13.12]
java: [graal_graalvm@17]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -126,22 +126,22 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.10)
- name: Download target directories (2.13.12)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-2.13.10-${{ matrix.java }}
name: target-${{ matrix.os }}-2.13.12-${{ matrix.java }}

- name: Inflate target directories (2.13.10)
- name: Inflate target directories (2.13.12)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.3.0)
- name: Download target directories (3.3.1)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-3.3.0-${{ matrix.java }}
name: target-${{ matrix.os }}-3.3.1-${{ matrix.java }}

- name: Inflate target directories (3.3.0)
- name: Inflate target directories (3.3.1)
run: |
tar xf targets.tar
rm targets.tar
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10]
scala: [2.13.12]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -193,7 +193,7 @@ jobs:

- name: Add Scoverage
id: add_plugin
run: sed -i -e '$aaddSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")' project/plugins.sbt
run: sed -i -e '$aaddSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")' project/plugins.sbt

- name: Update Build Definition
id: update_build_definition
Expand All @@ -215,7 +215,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10]
scala: [2.13.12]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand Down
8 changes: 4 additions & 4 deletions project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport.{headerLicense, Heade

object BuildHelper extends ScalaSettings {
val Scala212 = "2.12.18"
val Scala213 = "2.13.10"
val Scala3 = "3.3.0"
val ScoverageVersion = "1.9.3"
val Scala213 = "2.13.12"
val Scala3 = "3.3.1"
val ScoverageVersion = "2.0.9"
val JmhVersion = "0.4.3"
val SilencerVersion = "1.17.13"
val SilencerVersion = "1.7.14"

private val stdOptions = Seq(
"-deprecation",
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.19.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.10")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")
addSbtPlugin("io.get-coursier" % "sbt-shading" % "2.1.3")
9 changes: 5 additions & 4 deletions zio-http/src/main/scala/zio/http/netty/EventLoopGroups.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ object EventLoopGroups {
def make(config: Config, eventLoopGroup: UIO[EventLoopGroup])(implicit
trace: Trace,
): ZIO[Scope, Nothing, EventLoopGroup] =
ZIO.acquireRelease(eventLoopGroup)(ev =>
ZIO.acquireRelease(eventLoopGroup) { ev =>
val future = ev.shutdownGracefully(config.shutdownQuietPeriod, config.shutdownTimeOut, config.shutdownTimeUnit)
NettyFutureExecutor
.executed(ev.shutdownGracefully(config.shutdownQuietPeriod, config.shutdownTimeOut, config.shutdownTimeUnit))
.orDie,
)
.executed(future)
.orDie
}

def epoll(config: Config)(implicit trace: Trace): ZIO[Scope, Nothing, EventLoopGroup] =
make(config, ZIO.succeed(new EpollEventLoopGroup(config.nThreads)))
Expand Down

0 comments on commit 39ec0b5

Please sign in to comment.