|
| 1 | +name: Build & Test release-latest |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + # Run every hour. This helps detect flakiness, |
| 5 | + # and broken external dependencies. |
| 6 | + - cron: '0 * * * *' |
| 7 | + |
| 8 | +jobs: |
| 9 | + build_and_test_release_latest: |
| 10 | + name: Build and Test Release Latest ROS ${{ matrix.ros_version }} ${{ matrix.ros_distro }} |
| 11 | + runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + ros_distro: [kinetic, melodic, dashing] |
| 16 | + include: |
| 17 | + - ros_distro: kinetic |
| 18 | + ubuntu_distro: xenial |
| 19 | + ros_version: 1 |
| 20 | + extra_cmake_args: --cmake-target tests |
| 21 | + - ros_distro: melodic |
| 22 | + ubuntu_distro: bionic |
| 23 | + ros_version: 1 |
| 24 | + extra_cmake_args: --cmake-target tests |
| 25 | + - ros_distro: dashing |
| 26 | + ubuntu_distro: bionic |
| 27 | + ros_version: 2 |
| 28 | + extra_cmake_args: "" |
| 29 | + container: |
| 30 | + image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest |
| 31 | + outputs: |
| 32 | + build_result: ${{ steps.build.outcome }} |
| 33 | + test_result: ${{ steps.test.outcome }} |
| 34 | + steps: |
| 35 | + # TODO(setup-ros-docker#7): calling chown is necessary for now |
| 36 | + - run: sudo chown -R rosbuild:rosbuild "$HOME" . |
| 37 | + # Needed for the CMakeLists.txt setup |
| 38 | + - run: export ROS_DISTRO=${{ matrix.ros_distro }} |
| 39 | + # Needed for the CMakeLists.txt setup |
| 40 | + - run: export ROS_VERSION=${{ matrix.ros_version }} |
| 41 | + # Needed to access the vcs repos file from the workspace |
| 42 | + - name: Checkout source |
| 43 | + uses: actions/checkout@v2 |
| 44 | + - uses: ros-tooling/[email protected] |
| 45 | + with: |
| 46 | + source-ros-binary-installation: ${{ matrix.ros_distro }} |
| 47 | + package-name: aws_common |
| 48 | + extra-cmake-args: ${{ matrix.extra_cmake_args }} |
| 49 | + # schedule runs against the default branch (master), so specify release-latest via repos file |
| 50 | + vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/release_latest.repos" |
| 51 | + - uses: actions/upload-artifact@v1 |
| 52 | + with: |
| 53 | + name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }} |
| 54 | + path: ros_ws/log |
| 55 | + |
0 commit comments