-
Notifications
You must be signed in to change notification settings - Fork 7
Migrate build to sbt-typelevel #58
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
Conversation
|
||
addCommandAlias("ciNode", "; set Global / useJSEnv := JSEnv.NodeJS; test; core/doc") | ||
addCommandAlias("ciNode", "; set Global / useJSEnv := JSEnv.NodeJS; test; core/doc; core/mimaReportBinaryIssues; headerCheckAll") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now check binary-compatibility and copyright headers in CI.
enablePlugins(SonatypeCiReleasePlugin) | ||
|
||
ThisBuild / spiewakMainBranches := Seq("main") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbt-typelevel enables these by default.
// we can remove this once we have a non-password-protected key in the secrets | ||
ThisBuild / githubWorkflowPublishPreamble := Seq( | ||
WorkflowStep.Run( | ||
List( | ||
"echo \"$PGP_SECRET\" | base64 -d > /tmp/signing-key.gpg", | ||
"echo \"$PGP_PASSPHRASE\" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg"), | ||
name = Some("Import signing key"), | ||
env = Map("PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}")), | ||
|
||
WorkflowStep.Run( | ||
List("(echo \"$PGP_PASSPHRASE\"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase 5EBC14B0F6C55083"), | ||
name = Some("Strip passphrase from signing key"), | ||
env = Map("PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbt-typelevel has integrated "support" for passphrase-protected keys (actually, it just uses this same hack 😛 )
Migrates the build infrastructure to sbt-typelevel, which was largely derived from sbt-spiewak but has better support for Scala.js projects.
https://typelevel.org/sbt-typelevel/
Fixes #33. Fixes #43.
Closes #41. Closes #47.