mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
auto-gen weeder config
This commit is contained in:
parent
8dcae5c0de
commit
53b8a3b7ad
2
.github/workflows/cabal.haskell-ci
vendored
2
.github/workflows/cabal.haskell-ci
vendored
@ -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
|
||||
|
14
.github/workflows/haskell-ci.yml
vendored
14
.github/workflows/haskell-ci.yml
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user