Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SJS linker batch mode in CI #244

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

armanbilge
Copy link
Member

According to scaladoc:

In batch mode, the linker can throw away intermediate state that is otherwise maintained for incremental runs.

No idea if it will make a meaningful difference, but we definitely don't need incremental state in CI.

@@ -43,6 +44,9 @@ object TypelevelScalaJSGitHubPlugin extends AutoPlugin {
s"$flag$l->$g"
}
}
},
scalaJSLinkerConfig := {
scalaJSLinkerConfig.value.withBatchMode(sys.env.get("GITHUB_ACTIONS").contains("true"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This plugin annoyingly doesn't know about the GH actions plugin. So it has to check for itself whether we are in CI.

@armanbilge armanbilge merged commit 315f6c6 into typelevel:series/0.4 Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant