Skip to content

Commit

Permalink
Use latest version of GitHub Actions cache to support more event types.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Sep 1, 2023
1 parent 7062eb4 commit 0d78148
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/conan_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 0d78148

Please sign in to comment.