ci: continue on error for all actions/cache

This commit is contained in:
MistEO
2025-11-22 22:23:36 +08:00
committed by GitHub
parent 889313fe36
commit 3bec98b7ce
6 changed files with 14 additions and 2 deletions

View File

@@ -143,6 +143,7 @@ jobs:
- name: Cache .nuke/temp, ~/.nuget/packages
id: cache-nuget
uses: actions/cache@v4
continue-on-error: true
with:
path: |
.nuke/temp
@@ -224,8 +225,8 @@ jobs:
- name: Cache MaaDeps
id: cache-maadeps
continue-on-error: true
uses: actions/cache@v4
continue-on-error: true
with:
path: ./src/MaaUtils/MaaDeps
key: ${{ runner.os }}-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-maadeps-${{ hashFiles('tools/maadeps-download.py') }}
@@ -348,8 +349,8 @@ jobs:
- name: Cache MaaDeps
id: cache-maadeps
continue-on-error: true
uses: actions/cache@v4
continue-on-error: true
with:
path: ./src/MaaUtils/MaaDeps
key: ${{ runner.os }}-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-maadeps-${{ hashFiles('tools/maadeps-download.py') }}

View File

@@ -37,6 +37,7 @@ jobs:
- name: Cache lychee responses
uses: actions/cache@v4
continue-on-error: true
with:
path: .lycheecache
key: lychee-cache

View File

@@ -58,6 +58,7 @@ jobs:
# id: cache_python
# if: steps.check_push.outputs.is_pr != 'True' && always()
# uses: actions/cache@v4
# continue-on-error: true
# with:
# path: ${{ env.pythonLocation }}/lib/python3.11/site-packages
# key: ${{ runner.os }}-pip-optimize-templates-${{ hashFiles('./tools/OptimizeTemplates/requirements.txt') }}

View File

@@ -172,6 +172,7 @@ jobs:
- name: Cache MaaDeps
id: cache-maadeps
uses: actions/cache@v4
continue-on-error: true
with:
path: |
./src/MaaUtils/MaaDeps
@@ -201,6 +202,7 @@ jobs:
- name: Cache .nuke/temp, ~/.nuget/packages
id: cache-nuget
uses: actions/cache@v4
continue-on-error: true
with:
path: |
.nuke/temp

View File

@@ -147,6 +147,7 @@ jobs:
- name: Restore ResourceUpdater from cache
id: resupd-cache
uses: actions/cache/restore@v4
continue-on-error: true
with:
key: ResourceUpdater-${{ runner.os }}-${{ hashFiles('tools/ResourceUpdater/main.cpp') }}
path: |
@@ -157,6 +158,7 @@ jobs:
if: steps.resupd-cache.outputs.cache-hit != 'true'
id: maadeps-cache
uses: actions/cache@v4
continue-on-error: true
with:
path: |
./src/MaaUtils/MaaDeps
@@ -192,6 +194,7 @@ jobs:
- name: Save ResourceUpdater to cache
if: always() && steps.resupd-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
continue-on-error: true
with:
key: ResourceUpdater-${{ runner.os }}-${{ hashFiles('tools/ResourceUpdater/main.cpp') }}
path: |
@@ -256,6 +259,7 @@ jobs:
if: always() && steps.update_version.outputs.contains_png == 'True'
id: cache_python
uses: actions/cache@v4
continue-on-error: true
with:
path: ${{ env.pythonLocation }}/Lib/site-packages
key: ${{ runner.os }}-pip-optimize-templates-${{ hashFiles('./tools/OptimizeTemplates/requirements.txt') }}

View File

@@ -51,6 +51,7 @@ jobs:
- name: Restore cache for Smoke Test
id: smoke-cache
uses: actions/cache/restore@v4
continue-on-error: true
with:
key: ${{ steps.cache_key.outputs.key }}
path: |
@@ -70,6 +71,7 @@ jobs:
if: steps.smoke-cache.outputs.cache-hit != 'true'
id: maadeps-cache
uses: actions/cache@v4
continue-on-error: true
with:
path: ./src/MaaUtils/MaaDeps
key: ${{ runner.os }}-arm64-maadeps-${{ hashFiles('tools/maadeps-download.py') }}
@@ -115,6 +117,7 @@ jobs:
- name: Save cache for Smoke Test (only in dev)
if: steps.smoke-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/dev'
uses: actions/cache/save@v4
continue-on-error: true
with:
key: ${{ steps.cache_key.outputs.key }}
path: |