Skip to content

Commit

Permalink
ci: remove dup if
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Nov 4, 2024
1 parent 9673b28 commit 2874bed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ jobs:
# Cache dependencies already here, so that we do not have to rebuild them
# should the subsequent steps fail.
- name: Save cached dependencies (Linux only)
if: ${{ env.platform == 'x86_64-linux' }}
if: ${{ env.platform == 'x86_64-linux' &&
steps.cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
path: |
${HOME}/.cache/cabal
Expand All @@ -226,9 +226,9 @@ jobs:
key: ${{ steps.cache.outputs.cache-primary-key }}

- name: Save cached dependencies (MacOS and Windows only)
if: ${{ env.platform != 'x86_64-linux' }}
if: ${{ env.platform != 'x86_64-linux' &&
steps.cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ steps.cache.outputs.cache-primary-key }}
Expand Down

0 comments on commit 2874bed

Please sign in to comment.