Skip to content

Commit 5370c4b

Browse files
committed
Adjust CI to our needs
1 parent dd1be1b commit 5370c4b

File tree

5 files changed

+388
-114
lines changed

5 files changed

+388
-114
lines changed

.github/scripts/common.sh

-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ install_ghcup() {
137137
else
138138
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_MINIMAL=1 sh
139139
source "$(dirname "${GHCUP_BIN}")/env"
140-
# make sure we use the vanilla channel for installing binaries
141-
# see https://github.com/haskell/ghcup-metadata/pull/166#issuecomment-1893075575
142-
ghcup config set url-source https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-vanilla-0.0.8.yaml
143140
ghcup install cabal --set "${BOOTSTRAP_HASKELL_CABAL_VERSION}"
144141
fi
145142
}

.github/scripts/env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
export PATH="$HOME/.local/bin:$PATH"
1212

1313
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
14-
export BOOTSTRAP_HASKELL_CABAL_VERSION="${CABAL_VER:-3.10.2.0}"
14+
export BOOTSTRAP_HASKELL_CABAL_VERSION="${CABAL_VER:-3.10.2.1}"
1515
export BOOTSTRAP_HASKELL_ADJUST_CABAL_CONFIG=no
1616
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK=yes
1717
export BOOTSTRAP_HASKELL_ADJUST_BASHRC=1

.github/scripts/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ test_all_hls() {
4848
fi
4949
fi
5050
done
51-
# install the recommended GHC version so the wrapper can launch HLS
52-
ghcup install ghc --set recommended
51+
ghcup install ghc --set recommended
5352
"$bindir/haskell-language-server-wrapper${ext}" typecheck "${test_module}" || fail "failed to typecheck with HLS wrapper"
53+
ghcup rm ghc "$(ghc --numeric-version)"
5454
}
5555

5656
uname -a

0 commit comments

Comments
 (0)