mirror of https://github.com/sbt/sbt.git
Enable project-matrix/native test (#9038)
This commit is contained in:
parent
6c8ee6ea37
commit
75dcd1229b
|
|
@ -1,19 +1,14 @@
|
||||||
// lazy val root = (project in file("."))
|
|
||||||
// .aggregate(core.projectRefs ++ app.projectRefs: _*)
|
|
||||||
// .settings(
|
|
||||||
// )
|
|
||||||
|
|
||||||
lazy val core = (projectMatrix in file("core"))
|
lazy val core = (projectMatrix in file("core"))
|
||||||
.settings(
|
.settings(
|
||||||
name := "core",
|
name := "core",
|
||||||
mainClass in (Compile, run) := Some("a.CoreMain")
|
Compile / run / mainClass := Some("a.CoreMain")
|
||||||
)
|
)
|
||||||
.nativePlatform(scalaVersions = Seq("2.11.12"))
|
.nativePlatform(scalaVersions = Seq("2.13.18"))
|
||||||
|
|
||||||
lazy val app = (projectMatrix in file("app"))
|
lazy val app = (projectMatrix in file("app"))
|
||||||
.dependsOn(core)
|
.dependsOn(core)
|
||||||
.settings(
|
.settings(
|
||||||
name := "app",
|
name := "app",
|
||||||
mainClass in (Compile, run) := Some("a.App")
|
Compile / run / mainClass := Some("a.App")
|
||||||
)
|
)
|
||||||
.nativePlatform(scalaVersions = Seq("2.11.12"))
|
.nativePlatform(scalaVersions = Seq("2.13.18"))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
> nativeLink
|
|
||||||
|
|
||||||
$ exists app/target/native-2.11/app-out
|
|
||||||
$ exists core/target/native-2.11/core-out
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.0")
|
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.11")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
> nativeLink
|
||||||
|
|
||||||
|
$ exists target/out/native0.5/scala-2.13.18/app/app
|
||||||
|
$ exists target/out/native0.5/scala-2.13.18/core/core
|
||||||
Loading…
Reference in New Issue