Skip to content

Commit

Permalink
Merge pull request #6 from obsidiansystems/9.10
Browse files Browse the repository at this point in the history
CI GHC 9.10
  • Loading branch information
Ericson2314 authored Oct 3, 2024
2 parents 7a696af + cb321a1 commit f54f20d
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,30 @@ jobs:
build:
strategy:
matrix:
ghc: ['8.6.5', '8.8.4']
ghc: ['8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.5', '9.4.5', '9.6.1', '9.8.2', '9.10.1']
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}

name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1

- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.ghc }}-build-
${{ runner.os }}-${{ matrix.ghc }}-
${{ runner.os }}
- name: Install dependencies
run: |
Expand All @@ -35,7 +38,12 @@ jobs:
touch nix-prefetch-git
touch nix-prefetch-url
chmod 755 nix-prefetch-git nix-prefetch-url
- name: Build
run: env PATH=.:$PATH cabal build --enable-tests --enable-benchmarks all

- name: Run tests
run: env PATH=.:$PATH cabal test all
run: env PATH=.:$PATH cabal test --enable-tests all

- name: Build Docs
run: env PATH=.:$PATH cabal haddock

0 comments on commit f54f20d

Please sign in to comment.