Skip to content

Commit

Permalink
auto-gen weeder config
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Jul 18, 2024
1 parent 614a8e8 commit 0ddaef7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cabal.haskell-ci
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ docspec: True
-- Build haddocks. Accepts booleans or version range.
haddock: True

weeder: < 9.8

-- Build benchmarks. There are no way to run benchmarks. Accepts booleans or version range.
-- Swarm has benchmarks so at least build them :)
benchmarks: True
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,6 @@ jobs:
- name: build
run: |
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
- name: weeder
if: matrix.compilerVersion == '9.6.5'
uses: freckle/weeder-action@v2
with:
ghc-version: ${{ matrix.compilerVersion }}
weeder-arguments: --config $GITHUB_WORKSPACE/source/weeder.toml
working-directory: ${{ env.PKGDIR_swarm }}
- name: tests
run: |
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
Expand All @@ -242,6 +235,13 @@ jobs:
- name: haddock
run: |
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
- name: weeder
uses: freckle/weeder-action@v2
if: $((HCNUMVER < 90800))
with:
ghc-version: ${{ matrix.compilerVersion }}
weeder-arguments: --config $GITHUB_WORKSPACE/source/weeder.toml
working-directory: ${PKGDIR_swarm}
- name: save cache
uses: actions/cache/save@v4
if: always()
Expand Down

0 comments on commit 0ddaef7

Please sign in to comment.