Update .cabal file #10
Workflow file for this run
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: Haskell CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ghc: ['7.10.3', '8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4.8', '9.6.7', '9.8.4', '9.10.3', '9.12.2', '9.14.1'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: haskell-actions/setup@v2 | |
| id: setup-haskell | |
| with: | |
| ghc-version: ${{ matrix.ghc }} | |
| - name: cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ${{ steps.setup-haskell.outputs.cabal-store }} | |
| dist-newstyle | |
| key: ${{ runner.os }}-${{ matrix.ghc }} | |
| - name: Rename package to allow building test suite | |
| run: | | |
| sed -i 's/\(name:\s*binary\)/\1-cabal-is-broken/' binary.cabal | |
| sed -i 's/\(binary\),/\1-cabal-is-broken,/' binary.cabal | |
| - name: Build | |
| run: cabal build | |
| - name: Build tests | |
| run: cabal build --enable-tests | |
| - name: Test | |
| run: cabal test --enable-tests | |
| - name: Build benchmarks | |
| run: cabal build --enable-benchmarks | |
| - name: Bench | |
| run: | | |
| cabal run bench:throughput | |
| cabal run bench:get | |
| cabal run bench:put | |
| cabal run bench:generics-bench | |
| cabal run bench:builder | |
| env: | |
| TASTY_TIMEOUT: 100 | |
| - name: Haddock | |
| run: cabal haddock |