Skip to content

Commit

Permalink
Use actions/cache@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCardwell committed Jul 9, 2024
1 parent 451830a commit f0b65b8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
cabal v2-configure $CABAL_OPTS --disable-documentation
cabal v2-build --dry-run $CABAL_OPTS
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: ${{ steps.setup.outputs.cabal-store }}
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Install Dependencies
run: cabal v2-build all $CABAL_OPTS --only-dependencies
- name: Save Cached Dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ !steps.cache.outputs.cache-hit
|| steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }}
with:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
CACHE_RESTORE_KEY="${RUNNER_OS}-$(date +%Y%m)-ghc-${GHC_VERSION}-stack-"
echo "CACHE_RESTORE_KEY=${CACHE_RESTORE_KEY}" | tee -a "${GITHUB_ENV}"
- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.stack
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
cabal v2-configure $CABAL_OPTS --disable-documentation
cabal v2-build --dry-run $CABAL_OPTS
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: ${{ steps.setup.outputs.cabal-store }}
Expand All @@ -170,7 +170,7 @@ jobs:
- name: Install Dependencies
run: cabal v2-build all $CABAL_OPTS --only-dependencies
- name: Save Cached Dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ !steps.cache.outputs.cache-hit
|| steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }}
with:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
cabal v2-configure $CABAL_OPTS --disable-documentation
cabal v2-build --dry-run $CABAL_OPTS
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: ${{ steps.setup.outputs.cabal-store }}
Expand All @@ -225,7 +225,7 @@ jobs:
- name: Install Dependencies
run: cabal v2-build all $CABAL_OPTS --only-dependencies
- name: Save Cached Dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ !steps.cache.outputs.cache-hit
|| steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }}
with:
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
cabal v2-configure $CABAL_OPTS --disable-documentation
cabal v2-build --dry-run $CABAL_OPTS
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: ${{ steps.setup.outputs.cabal-store }}
Expand All @@ -283,7 +283,7 @@ jobs:
- name: Install Dependencies
run: cabal v2-build all $CABAL_OPTS --only-dependencies
- name: Save Cached Dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ !steps.cache.outputs.cache-hit
|| steps.cache.outputs.cache-primary-key != steps.cache.outputs.cache-matched-key }}
with:
Expand Down

0 comments on commit f0b65b8

Please sign in to comment.