auto-gen weeder config

This commit is contained in:
Karl Ostmo 2024-07-18 11:31:22 -07:00
parent 8dcae5c0de
commit 53b8a3b7ad
2 changed files with 9 additions and 7 deletions

View File

@ -13,6 +13,8 @@ docspec: True
-- Build haddocks. Accepts booleans or version range.
haddock: True
weeder: >= 9.4 && < 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

View File

@ -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
@ -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: swarm"
uses: freckle/weeder-action@v2
if: ${{ env.HCNUMVER >= 90400 && env.HCNUMVER < 90800 }}
with:
ghc-version: ${{ matrix.compilerVersion }}
weeder-arguments: --config $GITHUB_WORKSPACE/source/weeder.toml
working-directory: ${{ env.PKGDIR_swarm }}
- name: save cache
uses: actions/cache/save@v4
if: always()