Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-gen weeder config #2059

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
auto-gen weeder config
  • Loading branch information
kostmo committed Jul 19, 2024
commit 53b8a3b7ad2a1a874e17fea087cf6ef30957fa53
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.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
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: 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()
Expand Down