|
71 | 71 |
|
72 | 72 | name: ${{ matrix.env.IMAGE }}${{ matrix.env.CCOV && ' + ccov' || ''}}${{ matrix.env.IKFAST_TEST && ' + ikfast' || ''}}${{ matrix.env.CLANG_TIDY && (github.event_name != 'workflow_dispatch' && ' + clang-tidy (delta)' || ' + clang-tidy (all)') || '' }} |
73 | 73 | runs-on: ubuntu-latest |
| 74 | + container: moveit/moveit2:${{ matrix.env.IMAGE }} |
74 | 75 | steps: |
75 | | - - name: "Free up disk space" |
76 | | - if: matrix.env.CCOV |
77 | | - run: | |
78 | | - sudo apt-get -qq purge "ghc*" |
79 | | - sudo apt-get clean |
80 | | - # cleanup docker images not used by us |
81 | | - docker system prune -af |
82 | | - # shift ccache folder to /mnt on a separate disk |
83 | | - sudo mkdir /mnt/ccache |
84 | | - mkdir ${{ env.CCACHE_DIR }} |
85 | | - sudo mount --bind ${{ env.CCACHE_DIR }} /mnt/ccache |
86 | | - # free up a lot of stuff from /usr/local |
87 | | - sudo rm -rf /usr/local |
88 | | - df -h |
89 | 76 | - uses: actions/checkout@v6 |
90 | 77 | # NOTE: Testspace is temporarily disabled and needs to be installed for the MoveIt org |
91 | 78 | # See: https://github.com/moveit/moveit2/issues/2852 |
@@ -145,7 +132,10 @@ jobs: |
145 | 132 | - id: ici |
146 | 133 | name: Run industrial_ci |
147 | 134 | uses: ros-industrial/industrial_ci@master |
148 | | - env: ${{ matrix.env }} |
| 135 | + env: |
| 136 | + CCOV: ${{ matrix.env.CCOV }} |
| 137 | + CLANG_TIDY: ${{ matrix.env.CLANG_TIDY }} |
| 138 | + ROS_DISTRO: ${{ matrix.env.ROS_DISTRO }} |
149 | 139 | # NOTE: Testspace is temporarily disabled and needs to be installed for the MoveIt org |
150 | 140 | # See: https://github.com/moveit/moveit2/issues/2852 |
151 | 141 | # - name: Push result to Testspace |
@@ -178,10 +168,6 @@ jobs: |
178 | 168 | with: |
179 | 169 | name: clang-tidy |
180 | 170 | path: ${{ env.BASEDIR }}/target_ws/src/$(basename $(pwd)) |
181 | | - - name: chown the target_ws because it came out of root-owned Docker container filesystem |
182 | | - run: sudo chown -R "$USER:$USER" ${{ env.BASEDIR }}/target_ws |
183 | | - - name: move sonar-project.properties from checkout into ICI output |
184 | | - run: mv sonar-project.properties ${{ env.BASEDIR }}/target_ws |
185 | 171 | - name: SonarQube Scan |
186 | 172 | # Don't run if SONAR_TOKEN is not set (i.e. PR job from a fork) |
187 | 173 | if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0' && env.SONAR_TOKEN != '' |
|
0 commit comments