mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
21 lines
562 B
PowerShell
21 lines
562 B
PowerShell
################################################################################
|
|
## File: Install-Sbt.ps1
|
|
## Desc: Install sbt for Windows
|
|
################################################################################
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
Import-Module -Name ImageHelpers
|
|
|
|
# Install the latest version of sbt.
|
|
# See https://chocolatey.org/packages/sbt
|
|
Choco-Install -PackageName sbt
|
|
|
|
$env:SBT_HOME="${env:ProgramFiles(x86)}\sbt"
|
|
|
|
# Add sbt binaries to the path
|
|
Add-MachinePathItem "$env:SBT_HOME\bin"
|
|
$env:Path = Get-MachinePath
|
|
|
|
# Done
|
|
exit 0
|