Skip to content

Commit

Permalink
Workaround CI failures on Windows (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored May 23, 2021
1 parent 4d137aa commit d6813ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,20 @@ jobs:
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
# We rebuild tests several times to avoid intermittent failures on Windows
# https://github.com/haskell/actions/issues/36
- name: Test
run: |
cabal sdist -z -o .
cabal get bytestring-*.tar.gz
cd bytestring-*/
cp ../cabal.project .
cabal test --test-show-details=direct
bld() { cabal build bytestring:tests; }
bld || bld || bld
cabal test --test-show-details=direct all
- name: Bench
run: |
cd bytestring-*/
cabal bench --benchmark-option=-l
cabal bench --benchmark-option=-l all
- name: Haddock
run: cabal haddock

Expand Down
6 changes: 0 additions & 6 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
packages: .
tests: True
benchmarks: True

constraints:
semigroups -hashable -text -binary -bytestring

allow-newer:
hsc2hs:base

0 comments on commit d6813ab

Please sign in to comment.