mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
Inital commit.
This commit is contained in:
21
images/win/scripts/Installers/Install-Sbt.ps1
Normal file
21
images/win/scripts/Installers/Install-Sbt.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
## File: Install-Sbt.ps1
|
||||
## Team: CI-X
|
||||
## 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 sbt -y
|
||||
|
||||
$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
|
||||
Reference in New Issue
Block a user