Fix CI issues by specifying resolver properly
This commit is contained in:
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@@ -1,7 +1,8 @@
|
|||||||
on: [push]
|
on: [push]
|
||||||
name: CI
|
name: CI
|
||||||
jobs:
|
jobs:
|
||||||
Cabal_build:
|
cabal:
|
||||||
|
name: Cabal / GHC ${{ matrix.ghc }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -11,34 +12,34 @@ jobs:
|
|||||||
- "9.0.2"
|
- "9.0.2"
|
||||||
- "9.2.8"
|
- "9.2.8"
|
||||||
- "9.4.5"
|
- "9.4.5"
|
||||||
|
|
||||||
name: Cabal GHC ${{ matrix.ghc }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Haskell
|
- uses: haskell/actions/setup@v2
|
||||||
uses: haskell/actions/setup@v2
|
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
cabal-version: '3.8.1.0'
|
cabal-version: '3.8.1.0'
|
||||||
- run: cabal build all --enable-tests
|
- run: cabal build all --enable-tests
|
||||||
- run: cabal test all
|
- run: cabal test all
|
||||||
|
|
||||||
Stack_build:
|
stack:
|
||||||
name: Stack GHC ${{ matrix.ghc }}
|
name: Stack / GHC ${{ matrix.ghc }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
ghc:
|
include:
|
||||||
- "8.10.7"
|
- ghc: "8.10.7"
|
||||||
- "9.0.2"
|
resolver: "lts-18.28"
|
||||||
- "9.2.8"
|
- ghc: "9.0.2"
|
||||||
- "9.4.5"
|
resolver: "lts-19.33"
|
||||||
|
- ghc: "9.2.8"
|
||||||
|
resolver: "lts-20.26"
|
||||||
|
- ghc: "9.4.5"
|
||||||
|
resolver: "lts-21.0"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: haskell/actions/setup@v2
|
- uses: haskell/actions/setup@v2
|
||||||
name: Setup Haskell Stack
|
|
||||||
with:
|
with:
|
||||||
ghc-version: ${{ matrix.ghc }}
|
ghc-version: ${{ matrix.ghc }}
|
||||||
enable-stack: true
|
enable-stack: true
|
||||||
@@ -48,10 +49,12 @@ jobs:
|
|||||||
name: Cache ~/.stack
|
name: Cache ~/.stack
|
||||||
with:
|
with:
|
||||||
path: ~/.stack
|
path: ~/.stack
|
||||||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
|
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.resolver }}-stack2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
|
run: |
|
||||||
|
stack build --resolver ${{matrix.resolver}} --system-ghc --test --bench --no-run-tests --no-run-benchmarks
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: stack test --system-ghc
|
run: |
|
||||||
|
stack test --resolver ${{matrix.resolver}} --system-ghc
|
||||||
|
|||||||
Reference in New Issue
Block a user