Skip to content

Commit 4f0ffdb

Browse files
authored
Merge pull request #2263 from lwronski/build-changes
Build changes
2 parents 9177edf + e68c156 commit 4f0ffdb

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Copy launcher
2828
run: ./mill -i copyJvmLauncher artifacts/
2929
if: runner.os == 'Linux'
30+
- name: Copy bootstrapped launcher
31+
run: ./mill -i copyJvmBootstrappedLauncher artifacts/
32+
if: runner.os == 'Linux'
3033
- uses: actions/upload-artifact@v3
3134
if: runner.os == 'Linux'
3235
with:

build.sc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ object dummy extends Module {
196196
// dummy projects to get scala steward updates for Ammonite and scalafmt, whose
197197
// versions are used in the fmt and repl commands, and ensure Ammonite is available
198198
// for all Scala versions we support.
199-
object amm extends Cross[Amm](Scala.listAllAmmonite: _*)
199+
object amm extends Cross[Amm](Scala.listMaxAmmoniteScalaVersion: _*)
200200
class Amm(val crossScalaVersion: String) extends CrossScalaModule with Bloop.Module {
201201
def skipBloop = true
202202
def ivyDeps = Agg(
@@ -1248,6 +1248,15 @@ def copyJvmLauncher(directory: String = "artifacts") = T.command {
12481248
replaceExisting = true
12491249
)
12501250
}
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+
}
12511260

12521261
def uploadLaunchers(directory: String = "artifacts") = T.command {
12531262
val version = cli.publishVersion()

project/deps.sc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ object Scala {
3434
def maxAmmoniteScala212Version = scala212
3535
def maxAmmoniteScala213Version = scala213
3636
def maxAmmoniteScala3Version = "3.2.2"
37+
lazy val listMaxAmmoniteScalaVersion =
38+
Seq(maxAmmoniteScala212Version, maxAmmoniteScala213Version, maxAmmoniteScala3Version)
3739
lazy val listAllAmmonite = {
3840
import coursier.core.Version
3941
val max212 = Version(maxAmmoniteScala212Version)

0 commit comments

Comments
 (0)