Skip to content

Commit 9085661

Browse files
committed
CI: Revert to custom cache action
save-always doesn't work and will be removed in the future
1 parent e733cb1 commit 9085661

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
jobs:
1414
industrial_ci:
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
env:
1819
- ROS_DISTRO: rolling
@@ -48,33 +49,36 @@ jobs:
4849
steps:
4950
- uses: actions/checkout@v4
5051
- name: cache upstream_ws
51-
uses: actions/cache@v4
52+
uses: rhaschke/cache@main
5253
with:
53-
save-always: true
5454
path: ${{ env.BASEDIR }}/upstream_ws
5555
key: upstream_ws-${{ env.CACHE_PREFIX }}-${{ github.run_id }}
5656
restore-keys: |
5757
upstream_ws-${{ env.CACHE_PREFIX }}
58+
env:
59+
GHA_CACHE_SAVE: always
5860
# The target directory cache doesn't include the source directory because
5961
# that comes from the checkout. See "prepare target_ws for cache" task below
6062
- name: cache target_ws
6163
if: ${{ ! matrix.env.CCOV }}
62-
uses: actions/cache@v4
64+
uses: rhaschke/cache@main
6365
with:
64-
save-always: true
6566
path: ${{ env.BASEDIR }}/target_ws
6667
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
6768
restore-keys: |
6869
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
70+
env:
71+
GHA_CACHE_SAVE: always
6972
- name: cache ccache
70-
uses: actions/cache@v4
73+
uses: rhaschke/cache@main
7174
with:
72-
save-always: true
7375
path: ${{ env.CCACHE_DIR }}
7476
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
7577
restore-keys: |
7678
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
7779
ccache-${{ env.CACHE_PREFIX }}
80+
env:
81+
GHA_CACHE_SAVE: always
7882
- name: industrial_ci
7983
uses: ros-industrial/industrial_ci@master
8084
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)