@@ -11,48 +11,51 @@ jobs:
1111 matrix :
1212 env :
1313 - {
14- CACHE_PREFIX : ' foxy-main-debug-ccov' ,
15- ROS_DISTRO : foxy, ROS_REPO: main, CCOV_UPLOAD: true,
14+ ROS_DISTRO : foxy,
15+ ROS_REPO : main,
16+ CCOV_UPLOAD : true,
1617 CMAKE_ARGS : " -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage' -DCMAKE_CXX_FLAGS='--coverage'" ,
1718 AFTER_RUN_TARGET_TEST : ' ./.ci.prepare_codecov' ,
1819 ADDITIONAL_DEBS : ' lcov'
1920 }
2021 - {
21- CACHE_PREFIX : ' foxy-testing' , ROS_DISTRO: foxy, ROS_REPO: testing,
22+ ROS_DISTRO : foxy,
23+ ROS_REPO : testing,
2224 CCOV_UPLOAD : false
2325 }
2426 env :
25- UPSTREAM_WORKSPACE : warehouse_ros_mongo .repos
27+ UPSTREAM_WORKSPACE : upstream .repos
2628 AFTER_SETUP_UPSTREAM_WORKSPACE : ' vcs pull $BASEDIR/upstream_ws/src'
2729 CCACHE_DIR : " ${{ github.workspace }}/.ccache"
2830 BASEDIR : ${{ github.workspace }}/.work
31+ CACHE_PREFIX : " ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}${{ matrix.CCOV_UPLOAD && '-ccov' || '' }}"
2932 runs-on : ubuntu-latest
3033 steps :
3134 - uses : actions/checkout@v2
3235 - name : cache upstream_ws
3336 uses : pat-s/always-upload-cache@v2.1.3
3437 with :
3538 path : ${{ env.BASEDIR }}/upstream_ws
36- key : upstream_ws-${{ matrix. env.CACHE_PREFIX }}-${{ hashFiles('warehouse_ros_mongo .repos') }}-${{ github.run_id }}
39+ key : upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('upstream .repos') }}-${{ github.run_id }}
3740 restore-keys : |
38- upstream_ws-${{ matrix. env.CACHE_PREFIX }}-${{ hashFiles('warehouse_ros_mongo .repos') }}
41+ upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('upstream .repos') }}
3942 - name : cache ccache
4043 uses : pat-s/always-upload-cache@v2.1.3
4144 with :
4245 path : ${{ env.CCACHE_DIR }}
43- key : ccache-${{ matrix. env.CACHE_PREFIX }}-${{ github.sha }}
46+ key : ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
4447 restore-keys : |
45- ccache-${{ matrix. env.CACHE_PREFIX }}
48+ ccache-${{ env.CACHE_PREFIX }}
4649 - name : industrial_ci
4750 uses : ' ros-industrial/industrial_ci@master'
4851 env : ${{ matrix.env }}
49- - name : upaload test artifacts (on failure)
52+ - name : upload test artifacts (on failure)
5053 uses : actions/upload-artifact@v2
5154 if : failure()
5255 with :
5356 name : test-results
5457 path : ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
55- - name : upaload codecov report
58+ - name : upload codecov report
5659 uses : codecov/codecov-action@v1
5760 if : ${{ matrix.env.CCOV_UPLOAD }}
5861 with :
0 commit comments