refactor: Widen dependency bounds #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and test | |
| on: [push] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-haskell@v1 | |
| with: | |
| ghc-version: '8.10.4' | |
| cabal-version: '3.4' | |
| - name: Cache | |
| uses: actions/cache@v1 | |
| env: | |
| cache-name: cache-cabal | |
| with: | |
| path: ~/.cabal | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: Install dependencies | |
| run: | | |
| cabal update | |
| cabal build --only-dependencies --enable-tests --enable-benchmarks | |
| - name: Build | |
| run: cabal build --enable-tests --enable-benchmarks all | |
| - name: Run tests | |
| run: cabal test all | |
| - name: Run benchmarks | |
| run: cabal bench all | |
| - name: Generate Hackage release | |
| run: | | |
| cabal haddock --haddock-for-hackage --enable-doc | |
| cabal sdist | |
| - name: Save Hackage release | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: bottom.tar.gz | |
| path: ./dist-newstyle/sdist | |
| - name: Save Hackage documentation bundle | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: bottom-docs.tar.gz | |
| path: ./dist-newstyle/*-docs.tar.gz |