Skip to content

Commit 2403d4d

Browse files
committed
CI: Return to custom cache action
1 parent a15df24 commit 2403d4d

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
@@ -47,22 +47,24 @@ jobs:
4747
# The target directory cache doesn't include the source directory because
4848
# that comes from the checkout. See "prepare target_ws for cache" task below
4949
- name: cache target_ws
50-
uses: actions/cache@v4
50+
uses: rhaschke/cache@main
5151
with:
52-
save-always: true
5352
path: ${{ env.BASEDIR }}/target_ws
5453
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
5554
restore-keys: |
5655
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
56+
env:
57+
GHA_CACHE_SAVE: always
5758
- name: cache ccache
58-
uses: actions/cache@v4
59+
uses: rhaschke/cache@main
5960
with:
60-
save-always: true
6161
path: ${{ env.CCACHE_DIR }}
6262
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
6363
restore-keys: |
6464
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
6565
ccache-${{ env.CACHE_PREFIX }}
66+
env:
67+
GHA_CACHE_SAVE: always
6668
- name: industrial_ci
6769
uses: ros-industrial/industrial_ci@master
6870
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)