From 0d781484d16ba698a07eb8fe35de0f70d9da842f Mon Sep 17 00:00:00 2001 From: PengZheng Date: Fri, 1 Sep 2023 12:29:45 +0800 Subject: [PATCH] Use latest version of GitHub Actions cache to support more event types. --- .github/workflows/conan_create.yml | 8 ++++---- .github/workflows/coverage.yml | 4 ++-- .github/workflows/macos.yml | 6 +++--- .github/workflows/ubuntu.yml | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/conan_create.yml b/.github/workflows/conan_create.yml index 8c2549020..78ccd94e5 100644 --- a/.github/workflows/conan_create.yml +++ b/.github/workflows/conan_create.yml @@ -41,7 +41,7 @@ jobs: conan profile detect -f - name: Conan Cache id: cache-conan - uses: actions/cache@v1 + uses: actions/cache@v3 env: cache-name: cache-conan2-modules with: @@ -53,7 +53,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-ccache-${{ matrix.compiler[0] }}-${{ matrix.type }}-${{ steps.ccache_cache_timestamp.outputs.timestamp }} @@ -91,7 +91,7 @@ jobs: conan profile update settings.build_type=Release default - name: Conan Cache id: cache-conan - uses: actions/cache@v1 + uses: actions/cache@v3 env: cache-name: cache-conan-modules with: @@ -103,7 +103,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-ccache-Release-${{ steps.ccache_cache_timestamp.outputs.timestamp }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 336798f29..5c43d3f7c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -28,7 +28,7 @@ jobs: conan profile update settings.compiler.libcxx=libstdc++11 default - name: Conan Cache id: cache-conan - uses: actions/cache@v1 + uses: actions/cache@v3 env: cache-name: cache-conan2-modules with: @@ -40,7 +40,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-gcov-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 528ff6fc9..5c9898099 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -31,7 +31,7 @@ jobs: conan profile update settings.build_type=Release default - name: Conan Cache id: cache-conan - uses: actions/cache@v1 + uses: actions/cache@v3 env: cache-name: cache-conan-modules with: @@ -43,7 +43,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-test-ccache-Release-${{ steps.ccache_cache_timestamp.outputs.timestamp }} @@ -89,7 +89,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-brew-test-ccache-Release-${{ steps.ccache_cache_timestamp.outputs.timestamp }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 5a86a7b5f..90081de5d 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -49,7 +49,7 @@ jobs: conan profile show default - name: Conan Cache id: cache-conan - uses: actions/cache@v1 + uses: actions/cache@v3 env: cache-name: cache-conan2-modules with: @@ -61,7 +61,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-test-ccache-${{ matrix.compiler[0] }}-${{ matrix.type }}-${{ steps.ccache_cache_timestamp.outputs.timestamp }} @@ -130,7 +130,7 @@ jobs: run: | echo timestamp=`date +"%Y-%m-%d-%H;%M;%S"` >> $GITHUB_OUTPUT - name: ccache Cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-apt-test-ccache-gcc-Debug-${{ steps.ccache_cache_timestamp.outputs.timestamp }}