Skip to content

Commit fa99ee9

Browse files
committed
Optimize caching in CI
1 parent 916b94e commit fa99ee9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/haskell-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
id: setup-haskell-cabal
3131
with:
3232
ghc-version: ${{ matrix.ghc }}
33-
- name: Update cabal package database
34-
run: cabal update
33+
cabal-update: true # This runs 'cabal update' automatically
34+
ghc-setup-opts: '--enable-cache'
3535
- uses: actions/cache@v4
3636
name: Cache cabal stuff
3737
with:
@@ -62,12 +62,12 @@ jobs:
6262
runs-on: ubuntu-latest
6363
steps:
6464
- uses: actions/checkout@v4
65-
- uses: haskell/actions/setup@v2
65+
- uses: haskell-actions/setup@v2
6666
id: setup-haskell-cabal
6767
with:
6868
ghc-version: 'latest'
69-
- name: Update cabal package database
70-
run: cabal update
69+
cabal-update: true
70+
ghc-setup-opts: '--enable-cache'
7171
- uses: actions/cache@v4
7272
name: Cache cabal stuff
7373
with:

0 commit comments

Comments
 (0)