Skip to content

Commit

Permalink
Merge pull request #11 from serokell/lierdakil/chore-weeder
Browse files Browse the repository at this point in the history
[Chore] Add weeder v2
  • Loading branch information
lierdakil authored Jun 24, 2023
2 parents 0c5c424 + 630c50c commit 146e261
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@ jobs:
stack config set system-ghc --global true
stack config set install-ghc --global false
stack config set resolver ${{ matrix.resolver }}
# for weeder
echo 'ghc-options: {"$locals": -ddump-to-file -ddump-hi}' >> stack.yaml
- name: Configure for Weeder
if: ${{ steps.ghcver.outputs.ghcver == '9.4.5' }}
run: |
echo 'ghc-options: { "$locals": -fwrite-ide-info }' >> stack.yaml
- name: Stack build
run: |
Expand All @@ -209,6 +212,14 @@ jobs:
--ghc-options '-Werror' \
--haddock --no-haddock-deps
- name: Weeder
if: ${{ steps.ghcver.outputs.ghcver == '9.4.5' }}
run: |
wget https://github.com/lierdakil/weeder2-static/releases/download/v2.5.0-1/weeder.gz
gunzip weeder.gz
chmod +x weeder
./weeder
- name: Stack test
run: |
stack test
Expand Down
10 changes: 10 additions & 0 deletions weeder.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- SPDX-FileCopyrightText: 2023 Serokell <https://serokell.io>
-- SPDX-License-Identifier: MPL-2.0

{ type-class-roots = True
, roots =
[ "^Main\\.main$"
, "^Crypto\\.BLST\\..*$"
, "^Paths_.*"
]
}

0 comments on commit 146e261

Please sign in to comment.