@@ -30,17 +30,19 @@ jobs:
3030 BASEDIR : ${{ github.workspace }}/.work
3131 CACHE_PREFIX : " ${{ matrix.env.IMAGE }}${{ matrix.env.CCOV && '-ccov' || '' }}"
3232
33+ name : " ${{ matrix.env.IMAGE }}${{ matrix.env.CCOV && ' + ccov' || ''}}"
3334 runs-on : ubuntu-latest
3435 steps :
3536 - uses : actions/checkout@v2
3637 - name : cache upstream_ws
3738 uses : pat-s/always-upload-cache@v2.1.3
3839 with :
3940 path : ${{ env.BASEDIR }}/upstream_ws
40- key : upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('upstream .repos') }}-${{ github.run_id }}
41+ key : upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('moveit2 .repos') }}-${{ github.run_id }}
4142 restore-keys : |
42- upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('upstream .repos') }}
43+ upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('moveit2 .repos') }}
4344 - name : cache target_ws
45+ if : ${{ ! env.CCOV }}
4446 uses : pat-s/always-upload-cache@v2.1.3
4547 with :
4648 path : ${{ env.BASEDIR }}/target_ws
7072 with :
7173 files : ${{ env.BASEDIR }}/coverage.info
7274 - name : prepare target_ws for cache
73- if : always()
74- run : |
75+ if : ${{ always() && ! env.CCOV }}
76+ run :
7577 du -sh ${{ env.BASEDIR }}/target_ws
76- sudo find ${{ env.BASEDIR }}/target_ws -name '*.gcov' -type f -delete
77- sudo find ${{ env.BASEDIR }}/target_ws -name '*.gcno' -type f -delete
78- sudo find ${{ env.BASEDIR }}/target_ws -name '*.gcda' -type f -delete
79- sudo find ${{ env.BASEDIR }}/target_ws -name '*/test_results*' -delete
78+ sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
8079 sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
8180 du -sh ${{ env.BASEDIR }}/target_ws
0 commit comments