mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 07:59:18 +01:00
Add Robust CI Cache Restoration
The `restore-keys` parameter of `actions/cache@v3` is now utilized to add robust fallbacks for missing cache keys, it should automatically fall back to an older but still valid cache rather than entirely miss now.
This commit is contained in:
parent
40a7433e97
commit
da79e2c8e3
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -18,7 +18,11 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/
|
path: ~/.gradle/
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('app/**/*.xml') }}-${{ hashFiles('app/**.kt', 'app/**.java') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('app/**/*.xml') }}-
|
||||||
|
${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}-
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Restore CXX Cache
|
- name: Restore CXX Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -26,7 +30,10 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
app/.cxx/
|
app/.cxx/
|
||||||
app/build/intermediates/cxx/
|
app/build/intermediates/cxx/
|
||||||
key: ${{ runner.os }}-cxx-${{ hashFiles('**/CMakeLists.txt') }}
|
key: ${{ runner.os }}-cxx-${{ hashFiles('app/**/CMakeLists.txt') }}-${{ hashFiles('app/**/*.h', 'app/**/*.hpp', 'app/**/*.cpp', 'app/**/*.S') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-cxx-${{ hashFiles('app/**/CMakeLists.txt') }}-
|
||||||
|
${{ runner.os }}-cxx-
|
||||||
|
|
||||||
- name: Install Ninja Build
|
- name: Install Ninja Build
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user