Skip to content

Commit

Permalink
add mill support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Readon committed Nov 9, 2023
1 parent 71f88c6 commit 5358319
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions make-msys2-installer
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ install_coursier(){
export COURSIER_CACHE=${_newmsys}/cache/.coursier
echo "export COURSIER_CACHE=/cache/.coursier" >> ${_newmsys}/etc/skel/.bashrc
export COURSIER_HOME=${_newmsys}/coursier
export COURSIER_BIN_DIR=${_newmsys}/coursier
echo "export PATH=\"\$PATH:/coursier\"" >> ${_newmsys}/etc/skel/.bashrc
echo "alias coursier=cs.bat" >> ${_newmsys}/etc/skel/.bashrc

Expand All @@ -124,6 +125,9 @@ setup_sbt(){
${COURSIER} fetch jline:jline:2.14.3
${COURSIER} fetch org.fusesource.jansi:jansi:1.12
${COURSIER} fetch --sbt-plugin org.scalameta:sbt-scalafmt:2.4.6

echo "alias mill=mill.bat" >> ${_newmsys}/etc/skel/.bashrc
${COURSIER} install mill
}

_spinal_with_tester="1.8.0"
Expand Down
2 changes: 2 additions & 0 deletions test_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ do_test(){
export COURSIER_CACHE=${_newmsys}/cache/.coursier
export SBT_OPTS="-Dsbt.version=${_sbt_version} -Dsbt.boot.directory=${_newmsys}/cache/.sbt/boot -Dsbt.global.base=${_newmsys}/cache/.sbt/1.0 -Dsbt.ivy.home=${_newmsys}/cache/.ivy2"
export SBT_CMD="${SDKMAN_DIR}/candidates/sbt/current/bin/sbt ${SBT_OPTS}"
export MILL_CMD="${_newmsys}/coursier/mill.bat"

git clone https://github.com/SpinalHDL/SpinalTemplateSbt.git
cd SpinalTemplateSbt || exit
Expand All @@ -42,6 +43,7 @@ val scalaTest = "org.scalatest" %% "scalatest" % "3.2.14"' build.sbt
fi
${SBT_CMD} -Dsbt.offline=true "test" || exit

${MILL_CMD} _.compile || exit
cd ..
}

Expand Down

0 comments on commit 5358319

Please sign in to comment.