Skip to content

Commit f8b16d4

Browse files
committed
CI: Return to custom cache action
save-always doesn't work
1 parent 842c695 commit f8b16d4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build_and_test.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,24 @@ jobs:
3737
# that comes from the checkout. See "prepare target_ws for cache" task below
3838
- name: cache target_ws
3939
if: ${{ ! matrix.env.CCOV_UPLOAD }}
40-
uses: actions/cache@v4
40+
uses: rhaschke/cache@main
4141
with:
42-
save-always: true
4342
path: ${{ env.BASEDIR }}/target_ws
4443
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
4544
restore-keys: |
4645
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
46+
env:
47+
GHA_CACHE_SAVE: always
4748
- name: cache ccache
48-
uses: actions/cache@v4
49+
uses: rhaschke/cache@main
4950
with:
50-
save-always: true
5151
path: ${{ env.CCACHE_DIR }}
5252
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
5353
restore-keys: |
5454
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
5555
ccache-${{ env.CACHE_PREFIX }}
56+
env:
57+
GHA_CACHE_SAVE: always
5658
- name: industrial_ci
5759
uses: ros-industrial/industrial_ci@master
5860
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)