Skip to content

Commit

Permalink
ci: remove ghc and cabal cache for now
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Oct 21, 2024
1 parent 3b32e86 commit c52effb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Restore cached GHC and cabal
uses: actions/cache/restore@v4
id: ghc-cabal-cache
env:
key: ${{ runner.os }}-ghc-${{ matrix.ghc-version }}-cabal-${{ matrix.cabal-version }}
with:
path: |
~/.cabal/bin/cabal
~/.ghcup/bin/ghc-${{ matrix.ghc-version }}
key: ${{ env.key }}
restore-keys: ${{ env.key }}-
# - name: Restore cached GHC and cabal
# uses: actions/cache/restore@v4
# id: ghc-cabal-cache
# env:
# key: ${{ runner.os }}-ghc-${{ matrix.ghc-version }}-cabal-${{ matrix.cabal-version }}
# with:
# path: |
# ${HOME}/.cabal/bin/cabal
# ${HOME}/.ghcup/bin/ghc-${{ matrix.ghc-version }}
# key: ${{ env.key }}
# restore-keys: ${{ env.key }}-

- name: Set up GHC ${{ matrix.ghc-version }}
if: steps.ghc-cabal-cache.outputs.cache-hit != 'true'
Expand All @@ -47,14 +47,14 @@ jobs:
cabal-version: ${{ matrix.cabal-version }}
cabal-update: true

- name: Save cached GHC and cabal
uses: actions/cache/save@v4
if: steps.cache.outputs.ghc-cabal-cache-hit != 'true'
with:
path: |
~/.cabal/bin/cabal
~/.ghcup/bin/ghc-${{ matrix.ghc-version }}
key: ${{ steps.ghc-cabal-cache.outputs.cache-primary-key }}
# - name: Save cached GHC and cabal
# uses: actions/cache/save@v4
# if: steps.cache.outputs.ghc-cabal-cache-hit != 'true'
# with:
# path: |
# ${HOME}/.cabal/bin/cabal
# ${HOME}/.ghcup/bin/ghc-${{ matrix.ghc-version }}
# key: ${{ steps.ghc-cabal-cache.outputs.cache-primary-key }}

- name: Configure the build
run: |
Expand Down

0 comments on commit c52effb

Please sign in to comment.