Replace all moveit.ros.org to moveit.ai (#853) #347
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git). | |
| # For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst) | |
| name: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| ci: | |
| strategy: | |
| matrix: | |
| env: | |
| - IMAGE: melodic-source | |
| env: | |
| DOCKER_IMAGE: moveit/moveit:${{ matrix.env.IMAGE }} | |
| UNDERLAY: /root/ws_moveit/install | |
| CATKIN_LINT: true | |
| CCACHE_DIR: ${{ github.workspace }}/.ccache | |
| BASEDIR: ${{ github.workspace }}/.work | |
| CLANG_TIDY_BASE_REF: ${{ github.base_ref || github.ref }} | |
| name: ${{ matrix.env.IMAGE }}${{ matrix.env.CATKIN_LINT && ' + catkin_lint' || ''}}${{ matrix.env.CLANG_TIDY && ' + clang-tidy' || '' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| # The target directory cache doesn't include the source directory because | |
| # that comes from the checkout. See "prepare target_ws for cache" task below | |
| - name: Cache target workspace | |
| uses: rhaschke/cache@main | |
| with: | |
| path: ${{ env.BASEDIR }}/target_ws | |
| key: ${{ env.CACHE_PREFIX }}-${{ github.run_id }} | |
| restore-keys: ${{ env.CACHE_PREFIX }} | |
| env: | |
| GHA_CACHE_SAVE: always | |
| CACHE_PREFIX: target_ws-${{ matrix.env.IMAGE }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }} | |
| - name: Cache ccache | |
| uses: rhaschke/cache@main | |
| with: | |
| path: ${{ env.CCACHE_DIR }} | |
| key: ${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} | |
| restore-keys: | | |
| ${{ env.CACHE_PREFIX }}-${{ github.sha }} | |
| ${{ env.CACHE_PREFIX }} | |
| env: | |
| GHA_CACHE_SAVE: always | |
| CACHE_PREFIX: ccache-${{ matrix.env.IMAGE }} | |
| - name: Run industrial_ci | |
| uses: ros-industrial/industrial_ci@master | |
| env: ${{ matrix.env }} | |
| - name: Upload test artifacts (on failure) | |
| uses: actions/upload-artifact@v3 | |
| if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results) | |
| with: | |
| name: test-results-${{ matrix.env.IMAGE }} | |
| path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml | |
| - name: Prepare target_ws for cache | |
| if: ${{ always() }} | |
| run: | | |
| du -sh ${{ env.BASEDIR }}/target_ws | |
| sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete | |
| sudo rm -rf ${{ env.BASEDIR }}/target_ws/src ${{ env.BASEDIR }}/target_ws/logs | |
| du -sh ${{ env.BASEDIR }}/target_ws | |
| site: | |
| name: Build + Test Website | |
| runs-on: ubuntu-latest | |
| container: ros:melodic-ros-base | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "Install ruby" | |
| run: | | |
| apt-get update -q | |
| apt-get install -q -y ruby-dev libffi-dev build-essential | |
| - name: "Run htmlproofer.sh" | |
| run: ./htmlproofer.sh |