From 076c8a23804047c037f9723b98fab0352ed6fd1a Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 12 Jan 2024 13:09:55 +0100 Subject: [PATCH] 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 --- .github/workflows/ci-conan.yml | 1 + .github/workflows/ci-test-package-cmake.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci-conan.yml b/.github/workflows/ci-conan.yml index 5b9552f5..4091c7c6 100644 --- a/.github/workflows/ci-conan.yml +++ b/.github/workflows/ci-conan.yml @@ -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: diff --git a/.github/workflows/ci-test-package-cmake.yml b/.github/workflows/ci-test-package-cmake.yml index 075bd249..254d48f9 100644 --- a/.github/workflows/ci-test-package-cmake.yml +++ b/.github/workflows/ci-test-package-cmake.yml @@ -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: