File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 27
27
- name : Copy launcher
28
28
run : ./mill -i copyJvmLauncher artifacts/
29
29
if : runner.os == 'Linux'
30
+ - name : Copy bootstrapped launcher
31
+ run : ./mill -i copyJvmBootstrappedLauncher artifacts/
32
+ if : runner.os == 'Linux'
30
33
- uses : actions/upload-artifact@v3
31
34
if : runner.os == 'Linux'
32
35
with :
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ object dummy extends Module {
196
196
// dummy projects to get scala steward updates for Ammonite and scalafmt, whose
197
197
// versions are used in the fmt and repl commands, and ensure Ammonite is available
198
198
// for all Scala versions we support.
199
- object amm extends Cross [Amm ](Scala .listAllAmmonite : _* )
199
+ object amm extends Cross [Amm ](Scala .listMaxAmmoniteScalaVersion : _* )
200
200
class Amm (val crossScalaVersion : String ) extends CrossScalaModule with Bloop .Module {
201
201
def skipBloop = true
202
202
def ivyDeps = Agg (
@@ -1248,6 +1248,15 @@ def copyJvmLauncher(directory: String = "artifacts") = T.command {
1248
1248
replaceExisting = true
1249
1249
)
1250
1250
}
1251
+ def copyJvmBootstrappedLauncher (directory : String = " artifacts" ) = T .command {
1252
+ val launcher = cliBootstrapped.jar().path
1253
+ os.copy(
1254
+ launcher,
1255
+ os.Path (directory, os.pwd) / s " scala-cli.jar " ,
1256
+ createFolders = true ,
1257
+ replaceExisting = true
1258
+ )
1259
+ }
1251
1260
1252
1261
def uploadLaunchers (directory : String = " artifacts" ) = T .command {
1253
1262
val version = cli.publishVersion()
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ object Scala {
34
34
def maxAmmoniteScala212Version = scala212
35
35
def maxAmmoniteScala213Version = scala213
36
36
def maxAmmoniteScala3Version = " 3.2.2"
37
+ lazy val listMaxAmmoniteScalaVersion =
38
+ Seq (maxAmmoniteScala212Version, maxAmmoniteScala213Version, maxAmmoniteScala3Version)
37
39
lazy val listAllAmmonite = {
38
40
import coursier .core .Version
39
41
val max212 = Version (maxAmmoniteScala212Version)
You can’t perform that action at this time.
0 commit comments