Move installation of GHC _after_ cache has been loaded.

This commit is contained in:
Robin Heggelund Hansen 2022-03-11 20:52:21 +01:00
parent 90837276bd
commit 09c9889362
2 changed files with 10 additions and 10 deletions

View File

@ -12,11 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: '9.2.2'
cabal-version: '3.6'
- name: Cache
uses: actions/cache@v2
with:
@ -25,6 +20,11 @@ jobs:
~/.ghcup
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal') }}
- uses: haskell/actions/setup@v1
with:
ghc-version: '9.2.2'
cabal-version: '3.6'
- name: Build
run: |
cabal build

View File

@ -13,11 +13,6 @@ jobs:
- uses: mrkkrp/ormolu-action@v5
- uses: haskell/actions/setup@v1
with:
ghc-version: '9.2.2'
cabal-version: '3.6'
- name: Cache
uses: actions/cache@v2
with:
@ -26,6 +21,11 @@ jobs:
~/.ghcup
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal') }}
- uses: haskell/actions/setup@v1
with:
ghc-version: '9.2.2'
cabal-version: '3.6'
- name: Build
run: cabal build -f dev