Skip to content

Commit

Permalink
Move build to sbt-crossproject
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed Nov 18, 2023
1 parent 124f792 commit 4aedf9e
Show file tree
Hide file tree
Showing 33 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
platform: [JVM, JS, Native]

env:
PROJECT: core${{ matrix.platform != 'JVM' && matrix.platform || '' }}${{ matrix.scala }}
PROJECT: core${{ matrix.platform }}${{ matrix.scala }}

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 2 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ val siteSettings = Seq(
)
)

lazy val core = (projectMatrix in file("core"))
lazy val core =
crossProject(JVMPlatform, JSPlatform, NativePlatform)
.settings(
name := "interim",
libraryDependencies += "org.scalameta" %%% "munit" % "1.0.0-M10" % Test,
Expand All @@ -47,9 +48,6 @@ lazy val core = (projectMatrix in file("core"))
"docs"
)
)
.jvmPlatform(scalaVersions = Seq("3.3.1"))
.jsPlatform(scalaVersions = Seq("3.3.1"))
.nativePlatform(scalaVersions = Seq("3.3.1"))

releaseCrossBuild := true
releaseTagComment := s"Release ${(ThisBuild / version).value}"
Expand Down
17 changes: 9 additions & 8 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.14.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.16")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.14.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.16")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")

0 comments on commit 4aedf9e

Please sign in to comment.