mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
[ubuntu] Document GHC apt repository (#3268)
This commit is contained in:
@@ -251,7 +251,8 @@ function Build-PHPTable {
|
||||
function Get-GHCVersion {
|
||||
$(ghc --version) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$ghcVersion = $Matches.version
|
||||
return "GHC $ghcVersion"
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "ghc"
|
||||
return "GHC $ghcVersion (apt source repository: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-GHCupVersion {
|
||||
|
||||
@@ -49,4 +49,8 @@ ln -s "/opt/ghc/$defaultGHCVersion/bin/ghc" "/usr/bin/ghc"
|
||||
# Install the latest stable release of haskell stack
|
||||
curl -sSL https://get.haskellstack.org/ | sh
|
||||
|
||||
# remove PPA repo
|
||||
echo "ghc ppa:hvr/ghc" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||
add-apt-repository --remove ppa:hvr/ghc
|
||||
|
||||
invoke_tests "Haskell"
|
||||
Reference in New Issue
Block a user