Skip to content

Commit e68c156

Browse files
committed
Upload fat jar launcher of scala-cli into artifacts
1 parent aca0d35 commit e68c156

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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()

0 commit comments

Comments
 (0)