Skip to content

Commit

Permalink
Merge pull request #12 from andreasabel/ghc-9.6
Browse files Browse the repository at this point in the history
Bump base and template-haskell for GHC 9.6
  • Loading branch information
pacak committed Mar 16, 2023
2 parents a7e6bf8 + ffe377d commit f647d37
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,51 @@
name: Haskell CI

on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc: ['8.0', '8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2.1']
ghc: ['8.0', '8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6']

steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.0'
cabal-version: latest

- name: Determine precise GHC and Cabal versions
run: |
echo "GHC_VERSION=$(ghc --numeric-version)" >> "${GITHUB_ENV}"
echo "CABAL_VERSION=$(cabal --numeric-version)" >> "${GITHUB_ENV}"
- name: cabal Cache
uses: actions/cache@v1
env:
cache-name: cache-cabal
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
key: ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}-sha-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}-
${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-
- 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
4 changes: 2 additions & 2 deletions vector-th-unbox.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ library
Data.Vector.Unboxed.Deriving

build-depends:
base >= 4.9 && < 4.18,
template-haskell >= 2.5 && <2.20,
base >= 4.9 && < 4.19,
template-haskell >= 2.5 && <2.21,
vector >= 0.7.1 && <0.14

test-suite sanity
Expand Down

0 comments on commit f647d37

Please sign in to comment.