Skip to content

Commit f580987

Browse files
committed
CI: Try to fix Mint cache
1 parent 189749c commit f580987

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/swift.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ jobs:
2121
- name: Get swift version
2222
run: swift --version
2323
- name: Cache Mint
24-
uses: actions/cache@v2
24+
id: cache-mint
25+
uses: actions/cache@v3
2526
with:
26-
key: mint_deps
27+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Mintfile') }}
2728
path: ~/mint
2829
- uses: actions/checkout@v2
2930
- name: Install Dependencies (Mac only)
30-
if: ${{ matrix.os == 'macos-latest' }}
31+
if: ${{ matrix.os == 'macos-latest' && steps.cache-npm.outputs.cache-hit != 'true' }}
3132
env:
3233
MINT_PATH: '~/mint'
3334
run: |

0 commit comments

Comments
 (0)