Skip to content

Commit

Permalink
Enable benchmarks building on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Dec 16, 2024
1 parent 82de2e9 commit 4d6fd13
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ jobs:
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: ${{ (matrix.resolver == 'lts-9' || matrix.resolver == 'lts-11') && '2.15.5' || 'latest' }}
stack-no-global: ${{ (matrix.resolver == 'lts-9' || matrix.resolver == 'lts-11') && 'true' || '' }}
stack-version: 'latest'

- name: Cache
id: cache
Expand Down Expand Up @@ -103,7 +102,7 @@ jobs:
- name: Build
run: |
set -ex
stack $STACK_ARGS test --no-run-tests --haddock --no-haddock-deps
stack $STACK_ARGS test --no-run-tests --bench --no-run-benchmarks --haddock --no-haddock-deps
- name: Test
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand Down Expand Up @@ -179,10 +178,6 @@ jobs:
set -ex
cabal test all
- name: Doctest
# older ghc versions do not like some haddock examples
# linker on MacOS-13 complains too
# windows as always results in non-deterministic nonsense, so it will likely get disabled soon too.
# if: contains(fromJSON('["8.6.5", "8.8.4", "8.10.7", "9.0.2"]'), matrix.ghc) != true && matrix.os != 'macOS-13'
run: |
set -ex
cabal install doctest --ignore-project --overwrite-policy=always
Expand Down

0 comments on commit 4d6fd13

Please sign in to comment.