mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[MacOS] Install latest version of stack with ghcup (#8525)
This commit is contained in:
committed by
GitHub
parent
29ce1c3a2b
commit
691345d5ba
@@ -19,4 +19,7 @@ done
|
||||
echo "install cabal..."
|
||||
ghcup install-cabal
|
||||
|
||||
echo "Updating stack..."
|
||||
ghcup install stack latest
|
||||
|
||||
invoke_tests "Haskell"
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo "Get the latest Stack version..."
|
||||
stackDownloadUrl=$(get_github_package_download_url "commercialhaskell/stack" "contains(\"osx-x86_64.tar.gz\")" "latest" "$API_PAT")
|
||||
stackVersion=$(echo $stackDownloadUrl | cut -d "/" -f8 | tr -d "v")
|
||||
stackArchive="/tmp/stack.tar.gz"
|
||||
|
||||
echo "Download stack version $stackVersion..."
|
||||
download_with_retries $stackDownloadUrl "/tmp" "stack.tar.gz"
|
||||
|
||||
stackToolcachePath="$AGENT_TOOLSDIRECTORY/stack/$stackVersion"
|
||||
destinationPath="$stackToolcachePath/x64"
|
||||
|
||||
mkdir -p $destinationPath
|
||||
|
||||
echo "Unzip stack archive..."
|
||||
tar -xzf $stackArchive -C $destinationPath --strip 1
|
||||
|
||||
touch $stackToolcachePath/x64.complete
|
||||
|
||||
echo "export PATH="\$PATH":$destinationPath" >> "$HOME/.bashrc"
|
||||
|
||||
invoke_tests "Common" "Stack"
|
||||
@@ -194,7 +194,6 @@
|
||||
"./provision/core/rust.sh",
|
||||
"./provision/core/gcc.sh",
|
||||
"./provision/core/haskell.sh",
|
||||
"./provision/core/stack.sh",
|
||||
"./provision/core/cocoapods.sh",
|
||||
"./provision/core/android-toolsets.sh",
|
||||
"./provision/core/xamarin.sh",
|
||||
|
||||
@@ -208,7 +208,6 @@ build {
|
||||
"./provision/core/rust.sh",
|
||||
"./provision/core/gcc.sh",
|
||||
"./provision/core/haskell.sh",
|
||||
"./provision/core/stack.sh",
|
||||
"./provision/core/cocoapods.sh",
|
||||
"./provision/core/android-toolsets.sh",
|
||||
"./provision/core/xamarin.sh",
|
||||
|
||||
@@ -195,7 +195,6 @@
|
||||
"./provision/core/rust.sh",
|
||||
"./provision/core/gcc.sh",
|
||||
"./provision/core/haskell.sh",
|
||||
"./provision/core/stack.sh",
|
||||
"./provision/core/cocoapods.sh",
|
||||
"./provision/core/android-toolsets.sh",
|
||||
"./provision/core/xamarin.sh",
|
||||
|
||||
@@ -203,7 +203,6 @@ build {
|
||||
"./provision/core/rust.sh",
|
||||
"./provision/core/gcc.sh",
|
||||
"./provision/core/haskell.sh",
|
||||
"./provision/core/stack.sh",
|
||||
"./provision/core/cocoapods.sh",
|
||||
"./provision/core/android-toolsets.sh",
|
||||
"./provision/core/apache.sh",
|
||||
|
||||
Reference in New Issue
Block a user