Skip to content

Commit

Permalink
Add mill-mima to check binary compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Jul 28, 2021
1 parent c883cae commit 06df529
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ jobs:
java-version: 8
- name: Run tests
run: ./mill -i all __.publishArtifacts __.test
check-binary-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Check Binary Compatibility
run: ./mill -i __.mimaReportBinaryIssues

publish-sonatype:
if: github.repository == 'com-lihaoyi/geny' && contains(github.ref, 'refs/tags/')
Expand Down
6 changes: 5 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import mill._, scalalib._, scalajslib._, scalanativelib._, publish._
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version_mill0.9:0.1.1`
import de.tobiasroeser.mill.vcs.version.VcsVersion
import $ivy.`com.github.lolgab::mill-mima_mill0.9:0.0.4`
import com.github.lolgab.mill.mima._

val dottyCustomVersion = sys.props.get("dottyVersion")

Expand All @@ -23,11 +25,13 @@ val scalaNativeVersions = for {
scalaNativeV <- Seq("0.4.0")
} yield (scalaV, scalaNativeV)

trait GenyPublishModule extends PublishModule {
trait GenyPublishModule extends PublishModule with Mima {
def artifactName = "geny"

def publishVersion = VcsVersion.vcsState().format()

def mimaPreviousVersions = VcsVersion.vcsState().lastTag.toSeq

def pomSettings = PomSettings(
description = artifactName(),
organization = "com.lihaoyi",
Expand Down

0 comments on commit 06df529

Please sign in to comment.