mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 06:19:21 +00:00
[Ubuntu] Change rebar installation to use GitHub releases (#3486)
* Change rebar installation to use gh releases * Add source $HELPER_SCRIPTS/install.sh * Add Erlang rebar3 to software readme
This commit is contained in:
@@ -56,6 +56,13 @@ function Get-ErlangVersion {
|
||||
return "Erlang $erlangVersion (Eshell $shellVersion)"
|
||||
}
|
||||
|
||||
function Get-ErlangRebar3Version {
|
||||
$result = Get-CommandResult "rebar3 --version"
|
||||
$result.Output -match "rebar (?<version>(\d+.){2}\d+)" | Out-Null
|
||||
$rebarVersion = $Matches.version
|
||||
return "Erlang rebar3 $rebarVersion"
|
||||
}
|
||||
|
||||
function Get-MonoVersion {
|
||||
$monoVersion = mono --version | Out-String | Take-OutputPart -Part 4
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "mono"
|
||||
|
||||
Reference in New Issue
Block a user