|
| 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] |
| 16 | + include: |
| 17 | + - ros_distro: kinetic |
| 18 | + ubuntu_distro: xenial |
| 19 | + - ros_distro: melodic |
| 20 | + ubuntu_distro: bionic |
| 21 | + container: |
| 22 | + image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest |
| 23 | + env: |
| 24 | + # Needed for the CMakeLists.txt setup |
| 25 | + ROS_DISTRO: ${{ matrix.ros_distro }} |
| 26 | + ROS_VERSION: 1 |
| 27 | + steps: |
| 28 | + # TODO(setup-ros-docker#7): calling chown is necessary for now |
| 29 | + - name: Run setup-ros-docker workaround |
| 30 | + run: sudo chown -R rosbuild:rosbuild "$HOME" . |
| 31 | + # Needed to access the vcs repos file from the workspace |
| 32 | + - name: Checkout source |
| 33 | + uses: actions/checkout@v2 |
| 34 | + - name: Run action-ros-ci to build and test |
| 35 | + uses: ros-tooling/[email protected] |
| 36 | + with: |
| 37 | + source-ros-binary-installation: ${{ matrix.ros_distro }} |
| 38 | + package-name: cloudwatch_logger |
| 39 | + # schedule runs against the default branch (master), so specify release-latest via repos file |
| 40 | + vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/release_latest.repos" |
| 41 | + - name: Upload resulting colcon logs |
| 42 | + uses: actions/upload-artifact@v1 |
| 43 | + with: |
| 44 | + name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }} |
| 45 | + path: ros_ws/log |
0 commit comments