Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix CI tests #1

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
jvm: 8
- name: Publish stubs locally
run: ./mill -i stubs.publishLocal
run: ./mill -i publishStubs
- name: Setup (Windows only)
if: runner.os == 'Windows'
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.6
0.9.6-62-5af674
12 changes: 12 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,15 @@ def uploadLaunchers(directory: String = "artifacts") = T.command {
}
upload(ghOrg, ghName, ghToken, tag, dryRun = false, overwrite = overwriteAssets)(launchers: _*)
}

def publishStubs = T {
val javaModules = Seq(
stubs
)
val crossModules = for {
sv <- Scala.all
proj <- Seq(runner, `test-runner`, `line-modifier-plugin`)
} yield proj(sv)
val tasks = (javaModules ++ crossModules).map(_.publishLocal())
define.Task.sequence(tasks)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package scala.cli.runner

object Stacktrace {

def print(t: Throwable, prefix: String): Boolean =
false

}
4 changes: 2 additions & 2 deletions project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import mill._, scalalib._
object Scala {
def scala212 = "2.12.13"
def scala213 = "2.13.5"
def scala3Extras = Seq("3.0.0-RC2")
def scala3 = "3.0.0-RC3"
def scala3Extras = Seq("3.0.0-RC2", "3.0.0-RC3")
def scala3 = "3.0.0"
val allScala2 = Seq(scala213, scala212)
val all = allScala2 ++ scala3Extras ++ Seq(scala3)
}
Expand Down