Skip to content

Commit 7a6cce5

Browse files
committed
Disable tests and benchmarks in release test pipeline
On some platforms, building bytestring-0.12.1.0 is not fully supported yet. Hence, we disable tests and benchmarks, to allow building on the platform Windows with GHC 9.10.1.
1 parent 8a3896e commit 7a6cce5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/scripts/test.sh

+12-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ create_cradle() {
1616
echo " cabal:" >> hie.yaml
1717
}
1818

19+
# Tests and benchmarks can't be built on some GHC versions, such as GHC 9.10.1 on Windows.
20+
# Disable these packages for now, building bytestring-0.12.1.0 works completely fine.
21+
create_cabal_project() {
22+
echo "packages: ./" > cabal.project
23+
echo "" >> cabal.project
24+
echo "tests: False" >> cabal.project
25+
echo "benchmarks: False" >> cabal.project
26+
}
27+
1928
enter_test_package() {
2029
local tmp_dir
2130
tmp_dir=$(mktempdir)
@@ -60,7 +69,7 @@ env
6069

6170
# ensure ghcup
6271
install_ghcup
63-
ghcup install ghc --set 9.4.5
72+
ghcup install ghc --set 9.4.8
6473

6574
(cd .. && ecabal update) # run cabal update outside project dir
6675

@@ -77,6 +86,7 @@ case "${TARBALL_EXT}" in
7786

7887
enter_test_package
7988
create_cradle
89+
create_cabal_project
8090
test_all_hls "$GHCUP_BIN"
8191

8292
;;
@@ -106,6 +116,7 @@ case "${TARBALL_EXT}" in
106116

107117
enter_test_package
108118
create_cradle
119+
create_cabal_project
109120
test_all_hls "$(ghcup whereis bindir)"
110121

111122
;;

0 commit comments

Comments
 (0)