Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
4aade2d8
Commit
4aade2d8
authored
6 months ago
by
Javier Sagredo
Browse files
Options
Downloads
Patches
Plain Diff
Re-enable Windows CI
parent
dceba0f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/validate.yml
+5
-1
5 additions, 1 deletion
.github/workflows/validate.yml
cabal-testsuite/PackageTests/Backpack/Includes3/cabal-external.test.hs
+2
-1
2 additions, 1 deletion
...te/PackageTests/Backpack/Includes3/cabal-external.test.hs
validate.sh
+2
-6
2 additions, 6 deletions
validate.sh
with
9 additions
and
8 deletions
.github/workflows/validate.yml
+
5
−
1
View file @
4aade2d8
...
...
@@ -79,6 +79,11 @@ jobs:
"
8.8.4"
,
]
exclude
:
# Throws fatal "cabal-tests.exe: fd:8: hGetLine: end of file" exception
# even with --io-manager=native
-
sys
:
{
os
:
windows-latest
,
shell
:
"
C:/msys64/usr/bin/bash.exe
-e
{0}"
}
ghc
:
"
9.0.2"
# corrupts GHA cache or the fabric of reality itself, see https://github.com/haskell/cabal/issues/8356
-
sys
:
{
os
:
windows-latest
,
shell
:
"
C:/msys64/usr/bin/bash.exe
-e
{0}"
}
...
...
@@ -211,7 +216,6 @@ jobs:
run
:
sh validate.sh $FLAGS -s cli-tests
-
name
:
Validate cli-suite
if
:
runner.os != 'Windows'
run
:
sh validate.sh $FLAGS -s cli-suite
-
name
:
Validate solver-benchmarks-tests
...
...
This diff is collapsed.
Click to expand it.
cabal-testsuite/PackageTests/Backpack/Includes3/cabal-external.test.hs
+
2
−
1
View file @
4aade2d8
...
...
@@ -3,7 +3,8 @@ import Test.Cabal.Prelude
main
=
cabalTest
$
do
ghcVer
<-
isGhcVersion
">= 9.10"
skipUnlessGhcVersion
">= 8.1"
expectBrokenIf
(
isWindows
&&
ghcVer
)
10191
$
withProjectFile
"cabal.external.project"
$
do
skipIf
"Windows + 9.10.1 (#10191)"
(
isWindows
&&
ghcVer
)
withProjectFile
"cabal.external.project"
$
do
cabal
"v2-build"
[
"exe"
]
withPlan
$
do
r
<-
runPlanExe'
"exe"
"exe"
[]
...
...
This diff is collapsed.
Click to expand it.
validate.sh
+
2
−
6
View file @
4aade2d8
...
...
@@ -324,12 +324,8 @@ CABAL_TESTSUITE_BDIR="$(pwd)/$BUILDDIR/build/$ARCH/$BASEHC/cabal-testsuite-3"
CABALNEWBUILD
=
"
${
CABAL
}
build
$JOBS
-w
$HC
--builddir=
$BUILDDIR
--project-file=
$PROJECTFILE
"
CABALLISTBIN
=
"
${
CABAL
}
list-bin --builddir=
$BUILDDIR
--project-file=
$PROJECTFILE
"
# This was needed in some local Windows MSYS2 environments
# but breaks CI for Windows + GHC 9.0.2, thus it is set only on non-CI executions
# of validate.sh
# https://github.com/haskell/cabal/issues/9571
# https://github.com/haskell/cabal/pull/10114
RTSOPTS
=
"
$(
[
$ARCH
=
"x86_64-windows"
]
&&
[
-z
"
$CI
"
]
&&
[
"
$(
$HC
--numeric-version
)
"
!=
"8.10.7"
]
&&
echo
"+RTS --io-manager=native"
||
echo
""
)
"
# See https://github.com/haskell/cabal/issues/9571 for why we set this for Windows
RTSOPTS
=
"
$(
[
$ARCH
=
"x86_64-windows"
]
&&
[
"
$(
$HC
--numeric-version
)
"
!=
"9.0.2"
]
&&
[
"
$(
echo
-e
"
$(
ghc
--numeric-version
)
\n
9.0.2"
|
sort
-V
|
head
-n1
)
"
=
"9.0.2"
]
&&
echo
"+RTS --io-manager=native"
||
echo
""
)
"
# header
#######################################################################
...
...
This diff is collapsed.
Click to expand it.
Ben Gamari
@bgamari
mentioned in commit
3b132889
·
5 months ago
mentioned in commit
3b132889
mentioned in commit 3b1328899f8ea963f0fc7c1f638dbde82cf0c381
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment