Skip to content

Commit

Permalink
[github] adapt to new project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mauke committed Oct 21, 2024
1 parent 81e576d commit 9203a43
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: configure
run: |
cabal configure --enable-tests
cabal build all --dry-run
cabal build --dry-run
- name: restore cabal cache
uses: actions/cache/restore@v4
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Install dependencies
# If we had an exact cache hit, the dependencies will be up to date.
if: steps.cache.outputs.cache-hit != 'true'
run: cabal build all --only-dependencies
run: cabal build --only-dependencies

- name: save cabal cache
uses: actions/cache/save@v4
Expand All @@ -70,19 +70,13 @@ jobs:
key: ${{ steps.cache.outputs.cache-primary-key }}

- name: build
run: cabal build all
run: cabal build

- name: test
run: cabal test all
run: cabal test

- name: check
shell: bash
run: |
status=0
for i in */*.cabal; do
( cd "${i%/*}" && echo "[${i%/*}]" && cabal check ) || status=1
done
exit $status
run: cabal check

- name: documentation
run: cabal haddock all
run: cabal haddock

0 comments on commit 9203a43

Please sign in to comment.