Skip to content

Commit

Permalink
Merge pull request #244 from armanbilge/feature/sjs-batch-mode
Browse files Browse the repository at this point in the history
Use SJS linker batch mode in CI
  • Loading branch information
armanbilge authored Apr 6, 2022
2 parents 3871ac4 + 54b1aa0 commit 315f6c6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ object TypelevelScalaJSGitHubPlugin extends AutoPlugin {
override def requires = ScalaJSPlugin && TypelevelKernelPlugin

import TypelevelKernelPlugin.autoImport._
import ScalaJSPlugin.autoImport._

override def projectSettings = Seq(
scalacOptions ++= {
Expand All @@ -43,6 +44,9 @@ object TypelevelScalaJSGitHubPlugin extends AutoPlugin {
s"$flag$l->$g"
}
}
},
scalaJSLinkerConfig := {
scalaJSLinkerConfig.value.withBatchMode(sys.env.get("GITHUB_ACTIONS").contains("true"))
}
)
}

0 comments on commit 315f6c6

Please sign in to comment.