Skip to content

Commit 8899ab4

Browse files
committed
CI: Return to custom cache action
1 parent 62610ca commit 8899ab4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,24 @@ jobs:
3636
# that comes from the checkout. See "prepare target_ws for cache" task below
3737
- name: cache target_ws
3838
if: ${{ ! matrix.env.CCOV }}
39-
uses: actions/cache@v4
39+
uses: rhaschke/cache@main
4040
with:
41-
save-always: true
4241
path: ${{ env.BASEDIR }}/target_ws
4342
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
4443
restore-keys: |
4544
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
45+
env:
46+
GHA_CACHE_SAVE: always
4647
- name: cache ccache
47-
uses: actions/cache@v4
48+
uses: rhaschke/cache@main
4849
with:
49-
save-always: true
5050
path: ${{ env.CCACHE_DIR }}
5151
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
5252
restore-keys: |
5353
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
5454
ccache-${{ env.CACHE_PREFIX }}-
55+
env:
56+
GHA_CACHE_SAVE: always
5557
- name: industrial_ci
5658
uses: ros-industrial/industrial_ci@master
5759
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)