Skip to content

Commit

Permalink
Only run inliner in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Jan 29, 2024
1 parent 3df401e commit 4fe1c76
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,18 @@ val flagsFor13 = Seq(
val flagsFor3 = Seq.empty

ThisBuild / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n == 13 =>
flagsFor13
case Some((2, n)) if n == 12 =>
flagsFor12
case Some((3, _)) =>
Seq.empty
}
if (insideCI.value) {
val log = sLog.value
log.info("Running in CI, enabling Scala2 optimizer")
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n == 13 =>
flagsFor13
case Some((2, n)) if n == 12 =>
flagsFor12
case Some((3, _)) =>
Seq.empty
}
} else Seq.empty
}

IntegrationTest / parallelExecution := false
Expand Down

0 comments on commit 4fe1c76

Please sign in to comment.