|
19 | 19 | DOCKER_RUN_OPTS: --network static_test_net |
20 | 20 | BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101' |
21 | 21 | IMMEDIATE_TEST_OUTPUT: true |
22 | | - CCACHE_DIR: ${{ github.workspace }}/.ccache |
23 | | - BASEDIR: ${{ github.workspace }}/.work |
24 | | - CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-execution |
25 | 22 | PARALLEL_TESTS: 2 |
26 | 23 | steps: |
27 | 24 | - uses: actions/checkout@v1 |
|
30 | 27 | - name: start ursim |
31 | 28 | run: | |
32 | 29 | .github/dockerursim/build_and_run_docker_ursim.sh |
33 | | - # The target directory cache doesn't include the source directory because |
34 | | - # that comes from the checkout. See "prepare target_ws for cache" task below |
35 | | - - name: cache target_ws |
36 | | - if: ${{ ! matrix.env.CCOV }} |
37 | | - |
38 | | - with: |
39 | | - path: ${{ env.BASEDIR }}/target_ws |
40 | | - key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }} |
41 | | - restore-keys: | |
42 | | - target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }} |
43 | | - - name: cache ccache |
44 | | - |
45 | | - with: |
46 | | - path: ${{ env.CCACHE_DIR }} |
47 | | - key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} |
48 | | - restore-keys: | |
49 | | - ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }} |
50 | | - ccache-${{ env.CACHE_PREFIX }} |
51 | 30 | - uses: 'ros-industrial/industrial_ci@master' |
52 | 31 | env: |
53 | 32 | ROS_DISTRO: ${{ matrix.ROS_DISTRO }} |
54 | 33 | ROS_REPO: ${{ matrix.ROS_REPO }} |
55 | | - - name: prepare target_ws for cache |
56 | | - if: ${{ always() && ! matrix.env.CCOV }} |
57 | | - run: | |
58 | | - du -sh ${{ env.BASEDIR }}/target_ws |
59 | | - sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete |
60 | | - sudo rm -rf ${{ env.BASEDIR }}/target_ws/src |
61 | | - du -sh ${{ env.BASEDIR }}/target_ws |
0 commit comments