Skip to content

Commit b9ef678

Browse files
committed
Skip caching of target_ws
1 parent 8267854 commit b9ef678

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v2
37-
# The target directory cache doesn't include the source directory because
38-
# that comes from the checkout. See "prepare target_ws for cache" task below
39-
- name: Cache target_ws
40-
uses: pat-s/[email protected]
41-
with:
42-
path: ${{ env.BASEDIR }}/target_ws
43-
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
44-
restore-keys: |
45-
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
37+
4638
- name: Cache ccache
4739
uses: pat-s/[email protected]
4840
with:
@@ -51,6 +43,7 @@ jobs:
5143
restore-keys: |
5244
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
5345
ccache-${{ env.CACHE_PREFIX }}
46+
5447
- name: Login to DockerHub
5548
uses: docker/login-action@v1
5649
with:
@@ -71,14 +64,10 @@ jobs:
7164
if: ${{ always() && env.DOCKER_COMMIT }}
7265
run: |
7366
docker push ${{ env.DOCKER_COMMIT }} || true
67+
7468
- name: Upload test artifacts (on failure)
7569
uses: actions/upload-artifact@v2
7670
if: failure()
7771
with:
7872
name: test-results
7973
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
80-
- name: Prepare target_ws for cache
81-
if: ${{ always() && ! matrix.env.CCOV }}
82-
run: |
83-
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
84-
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src

0 commit comments

Comments
 (0)