File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,17 +257,18 @@ jobs:
257257 with :
258258 scala-version : ' 3.3.1'
259259
260+ - name : Setup Coursier
261+ uses : coursier/setup-action@v1
262+ with :
263+ apps : scala scalac
264+
260265 - name : Install matching Scala toolchain
261266 run : |
262- if ! command -v cs >/dev/null 2>&1; then
263- echo "coursier (cs) is required to provision a matching Scala runtime/compiler pair" >&2
264- exit 1
265- fi
266267 mkdir -p "$HOME/.local/bin"
268+ export PATH="$HOME/.local/bin:$HOME/.local/share/coursier/bin:$PATH"
267269 cs install --install-dir "$HOME/.local/bin" scala scalac
268270 echo "$HOME/.local/bin" >> "$GITHUB_PATH"
269271 echo "$HOME/.local/share/coursier/bin" >> "$GITHUB_PATH"
270- export PATH="$HOME/.local/bin:$HOME/.local/share/coursier/bin:$PATH"
271272 command -v scalac
272273 command -v scala
273274 scalac -version
You can’t perform that action at this time.
0 commit comments