ci: saving cache even if the build fails

See: https://github.com/actions/cache/blob/main/caching-strategies.md#saving-cache-even-if-the-build-fails
This commit is contained in:
Mateusz Pusz
2024-01-12 13:09:55 +01:00
parent 363e6995ea
commit 076c8a2380
2 changed files with 2 additions and 0 deletions

View File

@@ -132,6 +132,7 @@ jobs:
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Cache Conan data
uses: actions/cache@v3
if: always()
env:
cache-name: cache-conan-data
with:

View File

@@ -131,6 +131,7 @@ jobs:
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Cache Conan data
uses: actions/cache@v3
if: always()
env:
cache-name: cache-conan-data
with: