Merge pull request #29 from irobot-ros/jfinken/count_non_local_subs_u… #3
This file contains 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
name: ROS 2 CI | |
on: | |
push: | |
paths-ignore: ['**.md', '**.rst'] | |
pull_request: | |
paths-ignore: ['**.md', '**.rst'] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
rosdistro: [rolling] | |
os: [ubuntu-20.04, macOS-latest, windows-latest] | |
include: | |
- rosdistro: rolling | |
repos_branch: master | |
runs-on: ${{ matrix.os }} | |
steps: | |
- if: runner.os == 'Windows' | |
uses: actions/cache@v1 | |
with: | |
path: ${{env.TEMP}}/chocolatey | |
key: ${{matrix.os}}-chocolatey-${{github.job_id}} | |
restore-keys: ${{matrix.os}}-chocolatey- | |
- if: runner.os == 'Linux' | |
# azure ubuntu repo can be flaky so add an alternate source | |
run: sed -e 's/azure.archive.ubuntu.com/us.archive.ubuntu.com/g' -e t -e d /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/nonazure.list | |
- name: Acquire ROS dependencies | |
uses: ros-tooling/setup-ros@master | |
with: | |
# Install to avoid getting stuck on the license agreement prompt | |
install-connext: true | |
- name: Set up git to see all pull requests | |
run: git config --global --add remote.origin.fetch '+refs/pull/*:refs/remotes/origin/pull/*' | |
- name: Build and test ROS | |
id: ros_ci | |
uses: ros-tooling/[email protected] | |
with: | |
package-name: > | |
rmw_cyclonedds_cpp | |
rmw_implementation | |
target-ros2-distro: ${{matrix.rosdistro}} | |
vcs-repo-file-url: > | |
https://raw.githubusercontent.com/ros2/ros2/${{ matrix.repos_branch }}/ros2.repos | |
https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.github/resources/local.repos |