Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
45db7a6349
|
|||
|
b29358a3ce
|
6
.github/workflows/bindists.yaml
vendored
6
.github/workflows/bindists.yaml
vendored
@@ -60,6 +60,12 @@ jobs:
|
|||||||
- image: fedora:latest
|
- image: fedora:latest
|
||||||
installCmd: dnf install -y
|
installCmd: dnf install -y
|
||||||
toolRequirements: which gcc g++ gmp gmp-devel make ncurses ncurses-compat-libs xz perl
|
toolRequirements: which gcc g++ gmp gmp-devel make ncurses ncurses-compat-libs xz perl
|
||||||
|
- image: linuxmintd/mint19.3-amd64
|
||||||
|
installCmd: apt-get update && apt-get install -y
|
||||||
|
toolRequirements: build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
|
||||||
|
- image: linuxmintd/mint20.2-amd64
|
||||||
|
installCmd: apt-get update && apt-get install -y
|
||||||
|
toolRequirements: build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.image }}
|
image: ${{ matrix.image }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
20
.github/workflows/install-bindist.sh
vendored
20
.github/workflows/install-bindist.sh
vendored
@@ -12,15 +12,29 @@ which ghcup | grep foobarbaz
|
|||||||
|
|
||||||
ghcup -v --url-source=file:$METADATA_FILE install $TOOL --set $VERSION
|
ghcup -v --url-source=file:$METADATA_FILE install $TOOL --set $VERSION
|
||||||
|
|
||||||
|
cat <<EOF > main.hs
|
||||||
|
{- cabal:
|
||||||
|
build-depends: base
|
||||||
|
-}
|
||||||
|
|
||||||
|
main = print $ 1 + 1
|
||||||
|
EOF
|
||||||
|
|
||||||
case $TOOL in
|
case $TOOL in
|
||||||
hls)
|
hls)
|
||||||
haskell-language-server-wrapper --version
|
haskell-language-server-wrapper --version
|
||||||
|
haskell-language-server-wrapper typecheck main.hs
|
||||||
;;
|
;;
|
||||||
ghc)
|
ghc)
|
||||||
ghc --version
|
ghc --version
|
||||||
echo 'main = print $ 1 + 1' > main.hs
|
ghc --info
|
||||||
ghc main.hs
|
ghc -prof main.hs
|
||||||
[[ $(./main) -eq 2 ]]
|
[[ $(./main +RTS -s) -eq 2 ]]
|
||||||
|
;;
|
||||||
|
cabal)
|
||||||
|
cabal --version
|
||||||
|
cabal update
|
||||||
|
[[ $(cabal --verbose=0 run --enable-profiling ./main.hs -- +RTS -s) -eq 2 ]]
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
$TOOL --version
|
$TOOL --version
|
||||||
|
|||||||
Reference in New Issue
Block a user