mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
install powershell Ubuntu 20.04
This commit is contained in:
@@ -7,7 +7,7 @@ source $HELPER_SCRIPTS/etc-environment.sh
|
||||
source $HELPER_SCRIPTS/apt.sh
|
||||
source $HELPER_SCRIPTS/document.sh
|
||||
|
||||
if isUbuntu20 ; then
|
||||
if isUbuntu20 ; then
|
||||
LATEST_DOTNET_PACKAGES=("dotnet-sdk-3.1")
|
||||
release_urls=("https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.1/releases.json" "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/3.1/releases.json")
|
||||
fi
|
||||
|
||||
@@ -15,7 +15,7 @@ add-apt-repository -y ppa:hvr/ghc
|
||||
apt-get update
|
||||
|
||||
# Install various versions of ghc and cabal
|
||||
if isUbuntu20 ; then
|
||||
if isUbuntu20 ; then
|
||||
apt-get install -y \
|
||||
ghc-8.6.5 \
|
||||
ghc-8.8.3 \
|
||||
|
||||
@@ -8,7 +8,13 @@
|
||||
source $HELPER_SCRIPTS/document.sh
|
||||
|
||||
# Install Powershell
|
||||
snap install powershell --classic --channel=edge/useedge
|
||||
if isUbuntu20 ; then
|
||||
snap install powershell --classic --channel=edge/useedge
|
||||
fi
|
||||
|
||||
if isUbuntu16 || isUbuntu18 ; then
|
||||
apt-get install -y powershell
|
||||
fi
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||
|
||||
Reference in New Issue
Block a user