Skip to content

Commit 0a68e85

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 0824366 commit 0a68e85

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/scripts/test.sh

Lines changed: 10 additions & 0 deletions
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)
@@ -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
;;

0 commit comments

Comments
 (0)