[#185] Simplify CI build matrix (#186)

* Simplify CI build matrix

* Add quotes to GHC versions

* Update tested versions of GHC in cabal file

Co-authored-by: CristhianMotoche <cristhian.motoche@gmail.com>
This commit is contained in:
Sebastián Estrella 2022-04-09 10:53:58 -05:00 committed by GitHub
parent 51c2f9b550
commit facc8b0693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 12 deletions

View File

@ -17,22 +17,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os:
- macos-latest
- ubuntu-latest
ghc:
- "9.0.1"
- "8.10.4"
- "8.8.4"
- "8.6.5"
include:
- os: macos-latest
ghc: "9.0.1"
- "9.0"
- "8.10"
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.4"
cabal-version: "3.6"
- run: |
if [ "$RUNNER_OS" == "Linux" ]
then
@ -47,8 +44,8 @@ jobs:
- run: cabal freeze
- uses: actions/cache@v3
with:
key: v1-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: v1-${{ runner.os }}-${{ matrix.ghc }}-
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('*.cabal', 'cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
path: |
~/.cabal/packages
~/.cabal/store

View File

@ -28,7 +28,7 @@ homepage: https://github.com/stackbuilders/hapistrano
bug-reports: https://github.com/stackbuilders/hapistrano/issues
build-type: Simple
cabal-version: >=1.18
tested-with: GHC==8.6.5, GHC==8.8.4, GHC==8.10.4, GHC==9.0.1
tested-with: GHC==8.10.17, GHC==9.0.2
extra-source-files: CHANGELOG.md
, README.md