Skip to content

Commit

Permalink
Will it compile?
Browse files Browse the repository at this point in the history
  • Loading branch information
mio-19 committed Oct 25, 2024
1 parent cfabd17 commit 516de30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,4 @@ jobs:
with:
timeout_minutes: 25
max_attempts: 3
command: sbt test
command: sbt testAll
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import scala.sys.process._
ThisBuild / version := sys.env.getOrElse("VERSION", "0.0.24")
ThisBuild / organization := "com.github.chester-lang"

addCommandAlias("testAll", "rootJVM/test ; rootJS/test ; platform0Native/test")

addCommandAlias("format", "scalafmtAll ; scalafmtSbt ; scalafixAll")
addCommandAlias("fmt", "scalafmtAll ; scalafmtSbt")
inThisBuild(
Expand Down Expand Up @@ -517,8 +519,8 @@ lazy val tyck = crossProject(JSPlatform, JVMPlatform, NativePlatform)
)
.jvmSettings(commonJvmLibSettings)

// too hard to compile this for scala nativa, linking problem with scala stdlib
lazy val compiler213 = crossProject(JSPlatform, JVMPlatform)
// compiles with scala native but test / nativeLink for this subproject is broken.
lazy val compiler213 = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("compiler213"))
Expand All @@ -537,9 +539,7 @@ lazy val compiler = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("compiler"))
.dependsOn(utils, syntax, err)
.jvmConfigure(_.dependsOn(compiler213.jvm))
.jsConfigure(_.dependsOn(compiler213.js))
.dependsOn(utils, syntax, err, compiler213)
.settings(
name := "compiler",
commonSettings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package chester.cli.platform

def testFunctionalities(): Unit = {
()
println("functionalities test start")
chester.scala.Test.callit()
println("functionalities test end")
}

0 comments on commit 516de30

Please sign in to comment.