Skip to content

Commit

Permalink
Update CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Feb 15, 2024
1 parent f25bc2a commit e97982f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Stack / GHC
uses: haskell/actions/setup@v1
uses: haskell-actions/setup@v2
with:
ghc-version: '8.10.7' # Exact version of ghc to use
ghc-version: '8.10.7'
cabal-version: '3.10.2.1'
enable-stack: true
stack-version: 'latest'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ github.ref }}-${{ github.sha }}
Expand Down Expand Up @@ -63,16 +64,21 @@ jobs:
- "9.2.8"
- "9.4.8"
- "9.6.4"
exclude:
# Clash 1.6 doesn't support latest GHCs
- {clash: "1.6.1", ghc: "9.2.8"}
- {clash: "1.6.1", ghc: "9.4.8"}
- {clash: "1.6.1", ghc: "9.6.4"}

env:
clash_version: ${{ matrix.clash }}

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Haskell
uses: haskell/actions/setup@v1
uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
Expand All @@ -88,7 +94,7 @@ jobs:
mv cabal.project.freeze frozen
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ matrix.clash }}-${{ hashFiles('frozen') }}
Expand All @@ -114,7 +120,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Whitespace
run: |
Expand Down

0 comments on commit e97982f

Please sign in to comment.