File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 34
34
runs-on : ubuntu-latest
35
35
steps :
36
36
- 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
-
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
+
46
38
- name : Cache ccache
47
39
48
40
with :
51
43
restore-keys : |
52
44
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
53
45
ccache-${{ env.CACHE_PREFIX }}
46
+
54
47
- name : Login to DockerHub
55
48
uses : docker/login-action@v1
56
49
with :
@@ -71,14 +64,10 @@ jobs:
71
64
if : ${{ always() && env.DOCKER_COMMIT }}
72
65
run : |
73
66
docker push ${{ env.DOCKER_COMMIT }} || true
67
+
74
68
- name : Upload test artifacts (on failure)
75
69
uses : actions/upload-artifact@v2
76
70
if : failure()
77
71
with :
78
72
name : test-results
79
73
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
You can’t perform that action at this time.
0 commit comments