[add] CI for GHC 9.4.1 and 9.6.6.

This commit is contained in:
Yamada Ryo 2024-11-03 23:12:41 +09:00
parent 10a1aa78b3
commit ea2e3a54ab
No known key found for this signature in database
GPG Key ID: AAE3C7A542B02DBF
4 changed files with 32 additions and 27 deletions

View File

@ -10,33 +10,36 @@ permissions:
jobs:
build:
strategy:
matrix:
ghc: ["9.4.1", "9.6.6", "9.8.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-haskell@v1
with:
ghc-version: '9.8.2'
cabal-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/setup-haskell@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.10"
- name: Cache
uses: actions/cache@v3
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: Cache
uses: actions/cache@v3
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 all
- name: Build
run: cabal build --enable-tests --enable-benchmarks all
- name: Run tests
run: cabal test all
- name: Install dependencies
run: |
cabal update
cabal build --only-dependencies --enable-tests --enable-benchmarks all
- name: Build
run: cabal build --enable-tests --enable-benchmarks all
- name: Run tests
run: cabal test all

View File

@ -155,7 +155,7 @@ to the header of your source file.
Could not deduce GHC.TypeNats.KnownNat (1 GHC.TypeNats.+ ...)
The supported versions are GHC 9.4.1 and later.
This library has been tested with GHC 9.8.2 and 9.4.1.
This library has been tested with GHC 9.4.1, 9.6.6, and 9.8.3.
## Example

View File

@ -29,7 +29,8 @@ extra-doc-files:
README.md
tested-with:
GHC == 9.8.2
GHC == 9.8.3
GHC == 9.6.6
GHC == 9.4.1
source-repository head

View File

@ -47,7 +47,8 @@ extra-doc-files:
README.md
tested-with:
GHC == 9.8.2
GHC == 9.8.3
GHC == 9.6.6
GHC == 9.4.1
source-repository head