Skip to content

Commit ceb2b20

Browse files
Use cs 2.1.0-M5-5-g2cb552ea9 on Windows
Needed with the cs-based mill launcher, which uses coursier bootstraps to start Mill. This version addresses issues when using coursier from an app launched by a coursier bootstrap on Windows (JNI issues…)
1 parent 30df98f commit ceb2b20

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/scripts/get-latest-cs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
CS_VERSION="2.1.0-M5-5-g2cb552ea9"
5+
6+
DIR="$(cs get --archive "https://github.com/coursier/coursier/releases/download/v$CS_VERSION/cs-x86_64-pc-win32.zip")"
7+
8+
cp "$DIR/"*.exe cs.exe

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
- uses: coursier/[email protected]
6363
with:
6464
jvm: "temurin:17"
65+
- name: Get latest coursier launcher
66+
run: .github/scripts/get-latest-cs.sh
67+
shell: bash
68+
if: runner.os == 'Windows'
6569
- name: Generate native launcher
6670
run: .github/scripts/generate-native-image.sh
6771
shell: bash

mill.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ rem tar -xf "!DOWNLOAD_FILE!"
117117
rem move /y "cs-x86_64-pc-win32.exe" "%CS%"
118118
rem )
119119

120-
echo Using system found cs command. If anything goes wrong, ensure it's at least coursier 2.1.0-M2. 1>&2
120+
echo Using system found cs command. If anything goes wrong, ensure it's at least coursier 2.1.0-M5-5-g2cb552ea9. 1>&2
121121

122122
cs launch --shared org.scala-lang:scala-library "%MILL_APP_NAME%:%MILL_VERSION%" !mill_cs_opts! -- %MILL_PARAMS%

0 commit comments

Comments
 (0)