rmw_cyclonedds/.github/workflows/CI.yml
Dan Rose 2477456a3c Suppress cppcheck unknownMacro (#237)
Fast forward to https://github.com/ament/ament_lint/pull/268

This suppresses a defect in `ament_cppcheck` - namely that if a macro is missing, it fails loudly. This is compounded by fact that `ament_cppcheck` does not include all dependent headers, so macros are likely to be missing in the first place.

Signed-off-by: Dan Rose <dan@digilabs.io>
2020-10-15 15:45:20 +02:00

34 lines
1.3 KiB
YAML

name: ROS2 CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
rosdistro: [foxy]
os: [ubuntu-18.04, macOS-latest, windows-latest]
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
- 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
uses: ros-tooling/action-ros-ci@0.0.19
with:
target-ros2-distro: foxy
package-name: >
rmw_cyclonedds_cpp
rmw_implementation
vcs-repo-file-url: >
https://raw.githubusercontent.com/ros2/ros2/${{ matrix.rosdistro }}/ros2.repos
https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.github/resources/local.repos