Allow to set arbitrary tools in bindist action

Fixes #35
This commit is contained in:
2022-09-15 22:25:22 +08:00
parent fd71594ee6
commit 3f891cc56a
2 changed files with 25 additions and 10 deletions

View File

@@ -10,9 +10,19 @@ source $GHCUP_INSTALL_BASE_PREFIX/.ghcup/env || source ~/.bashrc
ghcup --version
which ghcup | grep foobarbaz
ghcup -v --url-source=file:$METADATA_FILE install ghc --set $GHC_VERSION
ghcup -v --url-source=file:$METADATA_FILE install $TOOL --set $VERSION
ghc --version
echo 'main = print $ 1 + 1' > main.hs
ghc main.hs
[[ $(./main) -eq 2 ]]
case $TOOL in
hls)
haskell-language-server-wrapper --version
;;
ghc)
ghc --version
echo 'main = print $ 1 + 1' > main.hs
ghc main.hs
[[ $(./main) -eq 2 ]]
;;
*)
$TOOL --version
;;
esac