Enable project-matrix/native test (#9038)

This commit is contained in:
kenji yoshida 2026-04-07 21:15:43 +09:00 committed by GitHub
parent 6c8ee6ea37
commit 75dcd1229b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 14 deletions

View File

@ -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"))

View File

@ -1,4 +0,0 @@
> nativeLink
$ exists app/target/native-2.11/app-out
$ exists core/target/native-2.11/core-out

View File

@ -1 +1 @@
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.11")

View File

@ -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