File tree Expand file tree Collapse file tree 2 files changed +35
-5
lines changed Expand file tree Collapse file tree 2 files changed +35
-5
lines changed Original file line number Diff line number Diff line change 31
31
run : sudo apt-get install libidn11-dev
32
32
- name : Compile
33
33
run : sbt -v compile
34
- - name : Check MiMa # disable for major releases
35
- run : sbt -v mimaReportBinaryIssues
36
34
- name : Test
37
35
run : sbt -v test
38
36
- name : Cleanup
43
41
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
44
42
find $HOME/.sbt -name "*.lock" -delete || true
45
43
44
+ mima :
45
+ # run on external PRs, but not on internal PRs since those will be run by push to branch
46
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
47
+ runs-on : ubuntu-20.04
48
+ steps :
49
+ - name : Checkout
50
+ uses : actions/checkout@v2
51
+ with :
52
+ fetch-depth : 0 # checkout tags so that dynver works properly (we need the version for MiMa)
53
+ - name : Set up JDK 11
54
+ uses : actions/setup-java@v1
55
+ with :
56
+ java-version : 11
57
+ - name : Cache sbt
58
+ uses : actions/cache@v2
59
+ with :
60
+ path : |
61
+ ~/.sbt
62
+ ~/.ivy2/cache
63
+ ~/.coursier
64
+ key : sbt-cache-${{ runner.os }}-JVM-${{ hashFiles('project/build.properties') }}
65
+ - name : Check MiMa # disable for major releases
66
+ run : sbt -v mimaReportBinaryIssues
67
+ - name : Cleanup
68
+ run : |
69
+ rm -rf "$HOME/.ivy2/local" || true
70
+ find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
71
+ find $HOME/.ivy2/cache -name "*-LM-SNAPSHOT*" -delete || true
72
+ find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
73
+ find $HOME/.sbt -name "*.lock" -delete || true
74
+
46
75
publish :
47
76
name : Publish release
48
77
needs : [ci]
Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
29
29
libraryDependencies ++= Seq (
30
30
" org.scalatest" %% " scalatest" % scalaTestVersion % Test
31
31
),
32
- mimaPreviousArtifacts := previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet,
33
- mimaReportBinaryIssues := { if ((publish / skip).value) {} else mimaReportBinaryIssues.value },
32
+ mimaPreviousArtifacts := Set .empty,
34
33
versionScheme := Some (" semver-spec" )
35
34
)
36
35
37
36
val commonJvmSettings = commonSettings ++ Seq (
38
37
scalacOptions ++= Seq (" -target:jvm-1.8" ),
39
- ideSkipProject := (scalaVersion.value != scala2_13)
38
+ ideSkipProject := (scalaVersion.value != scala2_13),
39
+ mimaPreviousArtifacts := previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet,
40
+ mimaReportBinaryIssues := { if ((publish / skip).value) {} else mimaReportBinaryIssues.value }
40
41
)
41
42
42
43
val commonJsSettings = commonSettings ++ Seq (
You can’t perform that action at this time.
0 commit comments