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

View File

@ -28,7 +28,7 @@ homepage: https://github.com/stackbuilders/hapistrano
bug-reports: https://github.com/stackbuilders/hapistrano/issues bug-reports: https://github.com/stackbuilders/hapistrano/issues
build-type: Simple build-type: Simple
cabal-version: >=1.18 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 extra-source-files: CHANGELOG.md
, README.md , README.md