A GitHub Action to install Scala CLI.
- run it on any platform: Linux, MacOS, Windows
- install any JVM you need
- setup the build tool of your choice: sbt, mill, seed, etc.
- install other common Scala CLI tools: Ammonite, Bloop, giter8, etc.
scala-cli-version
(optional): scala-cli version to install- "latest" to install the latest version.
jvm
(optional): JVM to install- one of the options from
cs java --available
. - if left empty either the existing JVM will be used or Coursier will install its default JVM.
- one of the options from
apps
(optional): Scala apps to install (sbtn
by default)- space separated list of app names (from the main channel)
version
(optional): Coursier version to install- This is defaulted to the latest stable release of Coursier
power
(optional): Value for the--power
launcher option- Necessary for using feature of scala-cli that require the
--power
option, like publishing. - Defaults to
false
- Necessary for using feature of scala-cli that require the
steps:
- uses: actions/checkout@v2
- uses: VirtusLab/scala-cli-setup@main
with:
jvm: adopt:11
apps: sbtn bloop ammonite
cs-version
: version of the installed Coursier (should be the latest available)scala-cli-version
: version of the installed Scala CLI (should be the latest available)
This action should work well with the official Coursier cache-action. For example:
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main