Skip to content

Commit

Permalink
Merge pull request #105 from mdedetrich/add-sensible-scalac-options
Browse files Browse the repository at this point in the history
Add sensible scalac options
  • Loading branch information
mdedetrich authored Jan 29, 2024
2 parents f53c169 + 8687ba7 commit 5572d77
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ pomIncludeRepository := { _ =>
}
publishMavenStyle := true

// compile settings
scalacOptions ++= List(
"-unchecked",
"-deprecation",
"-language:_",
"-encoding",
"UTF-8"
)

scalacOptions ++= {
if (insideCI.value) {
val log = sLog.value
log.info("Running in CI, enabling Scala2 optimizer")
Seq(
"-opt-inline-from:<sources>",
"-opt:l:inline"
)
} else Nil
}

ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test", "scripted")))

ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
Expand Down

0 comments on commit 5572d77

Please sign in to comment.