mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 09:15:06 +02:00
Enable project-matrix/native test (#9038)
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
// lazy val root = (project in file("."))
|
||||
// .aggregate(core.projectRefs ++ app.projectRefs: _*)
|
||||
// .settings(
|
||||
// )
|
||||
|
||||
lazy val core = (projectMatrix in file("core"))
|
||||
.settings(
|
||||
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"))
|
||||
.dependsOn(core)
|
||||
.settings(
|
||||
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
|
||||
Reference in New Issue
Block a user