Skip to content

Commit aacd7ed

Browse files
committed
Fix cache restore keys for ports
1 parent 645dd23 commit aacd7ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
uses: actions/cache@v4
3636
with:
3737
path: ports
38-
key: cross-compiled-${{ hashFiles('**/.ports_versions') }}
38+
key: cross-compiled-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
3939
restore-keys: |
40-
cross-compiled-${{ hashFiles('**/.ports_versions') }}
41-
cross-compiled-v2-
40+
cross-compiled-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
41+
cross-compiled-${{ matrix.platform }}-
4242
4343
- name: Build gem
4444
shell: bash
@@ -351,10 +351,10 @@ jobs:
351351
uses: actions/cache@v4
352352
with:
353353
path: ports
354-
key: native-v2-${{ hashFiles('**/.ports_versions') }}
354+
key: native-${{ hashFiles('**/.ports_versions') }}
355355
restore-keys: |
356356
native-${{ hashFiles('* */.ports_versions') }}
357-
native-v2-
357+
native-
358358
359359
- name: Build required libraries
360360
run: |
@@ -394,7 +394,7 @@ jobs:
394394
uses: actions/cache@v4
395395
with:
396396
path: ports
397-
key: native-v2-${{ hashFiles('**/.ports_versions') }}
397+
key: native-${{ hashFiles('**/.ports_versions') }}
398398
fail-on-cache-miss: true
399399

400400
- name: Build gem

0 commit comments

Comments
 (0)