Skip to content

Commit

Permalink
Update CI attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
noughtmare committed Aug 10, 2023
1 parent d50b371 commit e8ee0f3
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/ci.yml
Expand Up @@ -23,7 +23,8 @@ jobs:
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.4"
- "9.2.8"
- "9.6.2"
exclude:
- os: macOS-latest
ghc: 8.10.7
Expand Down Expand Up @@ -53,54 +54,60 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Configure
- if: matrix.ghc != '9.6.2'
name: Configure
run: |
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct --write-ghc-environment-files=always
- name: Freeze
- if: matrix.ghc != '9.6.2'
name: Freeze
run: |
cabal freeze
- uses: actions/cache@v3
- if: matrix.ghc != '9.6.2'
uses: actions/cache@v3
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}

- name: Install dependencies
- if: matrix.ghc != '9.6.2'
name: Install dependencies
run: |
cabal build all --only-dependencies
- name: Build
- if: matrix.ghc != '9.6.2'
name: Build
run: |
cabal build all
- name: Unit and property tests
- if: matrix.ghc != '9.6.2'
name: Unit and property tests
run: |
cabal test all
- if: matrix.ghc == '9.0.2'
- if: matrix.ghc == '9.6.2'
name: Build 'cabal-minimal'
run: |
cd "summoner-cli/examples/cabal-minimal/"
echo "packages: ." > cabal.project
cabal build all
- if: matrix.ghc == '9.0.2'
- if: matrix.ghc == '9.6.2'
name: Build 'cabal-full'
run: |
cd "summoner-cli/examples/cabal-full/"
echo "packages: ." > cabal.project
cabal build all
- if: matrix.ghc == '9.0.2'
- if: matrix.ghc == '9.6.2'
name: Build 'stack-full'
run: |
cd "summoner-cli/examples/stack-full/"
echo "packages: ." > cabal.project
cabal build all
- if: matrix.ghc == '9.0.2'
- if: matrix.ghc == '9.6.2'
name: Build 'full-batteries'
run: |
cd "summoner-cli/examples/full-batteries/"
Expand Down

0 comments on commit e8ee0f3

Please sign in to comment.