diff --git a/.github/workflows/haskell.yml b/.github/workflows/workflow.yaml similarity index 79% rename from .github/workflows/haskell.yml rename to .github/workflows/workflow.yaml index e5275f7..f023c73 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/workflow.yaml @@ -11,7 +11,7 @@ jobs: name: main runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set user input permissions run: sudo usermod -a -G input $USER @@ -20,7 +20,7 @@ jobs: uses: haskell-actions/setup@v2 id: setup with: - ghc-version: '9.4' + ghc-version: '9.6' cabal-version: '3.10' cabal-update: true @@ -33,7 +33,7 @@ jobs: cabal build all --dry-run - name: Restore cached dependencies - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 id: cache env: key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }} @@ -46,8 +46,8 @@ jobs: run: cabal build all --only-dependencies - name: Save cached dependencies - uses: actions/cache/save@v3 - if: ${{ steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }} + uses: actions/cache/save@v4 + if: steps.cache.outputs.cache-hit != 'true' with: path: ${{ steps.setup.outputs.cabal-store }} key: ${{ steps.cache.outputs.cache-primary-key }} @@ -59,3 +59,9 @@ jobs: run: | cabal build test sudo $(cabal list-bin test) + + - name: Check cabal files + run: (cd evdev && cabal check) && (cd evdev-streamly && cabal check) + + - name: Build documentation + run: cabal haddock all diff --git a/evdev-streamly/evdev-streamly.cabal b/evdev-streamly/evdev-streamly.cabal index cd5f845..467571a 100644 --- a/evdev-streamly/evdev-streamly.cabal +++ b/evdev-streamly/evdev-streamly.cabal @@ -11,7 +11,7 @@ homepage: https://github.com/georgefst/evdev license: BSD-3-Clause license-file: LICENSE category: Streamly, System -extra-source-files: +extra-doc-files: CHANGELOG.md README.md diff --git a/evdev/evdev.cabal b/evdev/evdev.cabal index 25efdf8..86f2187 100644 --- a/evdev/evdev.cabal +++ b/evdev/evdev.cabal @@ -9,7 +9,7 @@ homepage: https://github.com/georgefst/evdev license: BSD-3-Clause license-file: LICENSE category: System -extra-source-files: +extra-doc-files: CHANGELOG.md README.md