Skip to content

Commit

Permalink
Try to properly fix windows failures
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Jun 1, 2021
1 parent 518fdd3 commit f049b72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,20 @@ jobs:
key: ${{ runner.os }}-${{ matrix.ghc }}
# We rebuild tests several times to avoid intermittent failures on Windows
# https://github.com/haskell/actions/issues/36
# We also use --enable-tests and --enable-benchmarks to avoid
# test and bench commands from reconfiguring and thus rebuilding.
- name: Test
run: |
cabal sdist -z -o .
cabal get bytestring-*.tar.gz
cd bytestring-*/
bld() { cabal build bytestring:tests; }
bld() { cabal build bytestring:tests --enable-tests --enable-benchmarks; }
bld || bld || bld
cabal test --test-show-details=direct all
cabal test --enable-tests --enable-benchmarks --test-show-details=direct all -j1
- name: Bench
run: |
cd bytestring-*/
cabal bench --benchmark-option=-l all
cabal bench --enable-tests --enable-benchmarks --benchmark-option=-l all
- name: Haddock
run: cabal haddock

Expand Down

0 comments on commit f049b72

Please sign in to comment.