Skip to content

Commit 474d698

Browse files
authored
Merge pull request #10282 from jasagredo/js/investigate-windows
Re-enable Windows CI
2 parents dceba0f + 4aade2d commit 474d698

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/validate.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
"8.8.4",
8080
]
8181
exclude:
82+
# Throws fatal "cabal-tests.exe: fd:8: hGetLine: end of file" exception
83+
# even with --io-manager=native
84+
- sys:
85+
{ os: windows-latest, shell: "C:/msys64/usr/bin/bash.exe -e {0}" }
86+
ghc: "9.0.2"
8287
# corrupts GHA cache or the fabric of reality itself, see https://github.com/haskell/cabal/issues/8356
8388
- sys:
8489
{ os: windows-latest, shell: "C:/msys64/usr/bin/bash.exe -e {0}" }
@@ -211,7 +216,6 @@ jobs:
211216
run: sh validate.sh $FLAGS -s cli-tests
212217

213218
- name: Validate cli-suite
214-
if: runner.os != 'Windows'
215219
run: sh validate.sh $FLAGS -s cli-suite
216220

217221
- name: Validate solver-benchmarks-tests

cabal-testsuite/PackageTests/Backpack/Includes3/cabal-external.test.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import Test.Cabal.Prelude
33
main = cabalTest $ do
44
ghcVer <- isGhcVersion ">= 9.10"
55
skipUnlessGhcVersion ">= 8.1"
6-
expectBrokenIf (isWindows && ghcVer) 10191 $ withProjectFile "cabal.external.project" $ do
6+
skipIf "Windows + 9.10.1 (#10191)" (isWindows && ghcVer)
7+
withProjectFile "cabal.external.project" $ do
78
cabal "v2-build" ["exe"]
89
withPlan $ do
910
r <- runPlanExe' "exe" "exe" []

validate.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,8 @@ CABAL_TESTSUITE_BDIR="$(pwd)/$BUILDDIR/build/$ARCH/$BASEHC/cabal-testsuite-3"
324324
CABALNEWBUILD="${CABAL} build $JOBS -w $HC --builddir=$BUILDDIR --project-file=$PROJECTFILE"
325325
CABALLISTBIN="${CABAL} list-bin --builddir=$BUILDDIR --project-file=$PROJECTFILE"
326326

327-
# This was needed in some local Windows MSYS2 environments
328-
# but breaks CI for Windows + GHC 9.0.2, thus it is set only on non-CI executions
329-
# of validate.sh
330-
# https://github.com/haskell/cabal/issues/9571
331-
# https://github.com/haskell/cabal/pull/10114
332-
RTSOPTS="$([ $ARCH = "x86_64-windows" ] && [ -z "$CI" ] && [ "$($HC --numeric-version)" != "8.10.7" ] && echo "+RTS --io-manager=native" || echo "")"
327+
# See https://github.com/haskell/cabal/issues/9571 for why we set this for Windows
328+
RTSOPTS="$([ $ARCH = "x86_64-windows" ] && [ "$($HC --numeric-version)" != "9.0.2" ] && [ "$(echo -e "$(ghc --numeric-version)\n9.0.2" | sort -V | head -n1)" = "9.0.2" ] && echo "+RTS --io-manager=native" || echo "")"
333329

334330
# header
335331
#######################################################################

0 commit comments

Comments
 (0)