From 3a2e60eeece3923cf4f29bf583f77c15b35caa9b Mon Sep 17 00:00:00 2001 From: mos Date: Tue, 23 Jan 2024 11:51:46 +0100 Subject: [PATCH] github CI: switch to actions/cache@v4 for ccache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with ´save-always: true´ flag --- .github/workflows/sub_buildMacOSCondaApple.yml | 3 ++- .github/workflows/sub_buildMacOSCondaIntel.yml | 3 ++- .github/workflows/sub_buildUbuntu2004.yml | 3 ++- .github/workflows/sub_buildUbuntu2204Conda.yml | 3 ++- .github/workflows/sub_buildWindows.yml | 3 ++- .github/workflows/sub_buildWindowsConda.yml | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sub_buildMacOSCondaApple.yml b/.github/workflows/sub_buildMacOSCondaApple.yml index 966ce8c190..ee5ba55b7b 100644 --- a/.github/workflows/sub_buildMacOSCondaApple.yml +++ b/.github/workflows/sub_buildMacOSCondaApple.yml @@ -101,8 +101,9 @@ jobs: with: compiler: ${{ env.CXX }} - name: Restore Compiler Cache - uses: pat-s/always-upload-cache@v3 + uses: actions/cache@v4 with: + save-always: true path: ${{ env.CCACHE_DIR }} key: FC-${{ steps.genCacheKey.outputs.cacheKey }}-${{ github.ref }}-${{ github.run_id }} restore-keys: | diff --git a/.github/workflows/sub_buildMacOSCondaIntel.yml b/.github/workflows/sub_buildMacOSCondaIntel.yml index 840a5d9932..bcb23571c2 100644 --- a/.github/workflows/sub_buildMacOSCondaIntel.yml +++ b/.github/workflows/sub_buildMacOSCondaIntel.yml @@ -101,8 +101,9 @@ jobs: with: compiler: ${{ env.CXX }} - name: Restore Compiler Cache - uses: pat-s/always-upload-cache@v3 + uses: actions/cache@v4 with: + save-always: true path: ${{ env.CCACHE_DIR }} key: FC-${{ steps.genCacheKey.outputs.cacheKey }}-${{ github.ref }}-${{ github.run_id }} restore-keys: | diff --git a/.github/workflows/sub_buildUbuntu2004.yml b/.github/workflows/sub_buildUbuntu2004.yml index 5e7a1f9b33..4e008d4112 100644 --- a/.github/workflows/sub_buildUbuntu2004.yml +++ b/.github/workflows/sub_buildUbuntu2004.yml @@ -159,8 +159,9 @@ jobs: with: compiler: ${{ env.CXX }} - name: Restore Compiler Cache - uses: pat-s/always-upload-cache@v3 + uses: actions/cache@v4 with: + save-always: true path: ${{ env.CCACHE_DIR }} key: FC-${{ steps.genCacheKey.outputs.cacheKey }}-${{ github.ref }}-${{ github.run_id }} restore-keys: | diff --git a/.github/workflows/sub_buildUbuntu2204Conda.yml b/.github/workflows/sub_buildUbuntu2204Conda.yml index 0d08113530..d28021cebe 100644 --- a/.github/workflows/sub_buildUbuntu2204Conda.yml +++ b/.github/workflows/sub_buildUbuntu2204Conda.yml @@ -99,8 +99,9 @@ jobs: with: compiler: ${{ env.CXX }} - name: Restore Compiler Cache - uses: pat-s/always-upload-cache@v3 + uses: actions/cache@v4 with: + save-always: true path: ${{ env.CCACHE_DIR }} key: FC-${{ steps.genCacheKey.outputs.cacheKey }}-${{ github.ref }}-${{ github.run_id }} restore-keys: | diff --git a/.github/workflows/sub_buildWindows.yml b/.github/workflows/sub_buildWindows.yml index d2b394aecd..d214af2bd5 100644 --- a/.github/workflows/sub_buildWindows.yml +++ b/.github/workflows/sub_buildWindows.yml @@ -85,8 +85,9 @@ jobs: with: libpackdir: ${{ env.libpackdir }} - name: Restore compiler cache - uses: pat-s/always-upload-cache@v3 + uses: actions/cache@v4 with: + save-always: true path: ${{ env.CCACHE_DIR }} key: FC-Windows-${{ github.ref }}-${{ github.run_id }} restore-keys: | diff --git a/.github/workflows/sub_buildWindowsConda.yml b/.github/workflows/sub_buildWindowsConda.yml index 8ed42250a4..fb9333bbdb 100644 --- a/.github/workflows/sub_buildWindowsConda.yml +++ b/.github/workflows/sub_buildWindowsConda.yml @@ -85,8 +85,9 @@ jobs: mkdir ${{ env.reportdir }} echo "reportFile=${{ env.reportfilename }}" >> $GITHUB_OUTPUT - name: Restore compiler cache - uses: pat-s/always-upload-cache@v3 + uses: actions/cache@v4 with: + save-always: true path: ${{ env.CCACHE_DIR }} key: FC-Windows-Conda-${{ github.ref }}-${{ github.run_id }} restore-keys: |