Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github Actions CI #123

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI Micro XRCE-DDS Suite

on:
pull_request:
branches:
- '**'

jobs:

micro_xrce_dds_suite_ci:
runs-on: ubuntu-22.04
container: ubuntu:22.04

steps:
- uses: actions/checkout@v2
with:
path: Micro-XRCE-DDS

- name: Install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
apt update
apt install -y cmake build-essential git valgrind

- name: Build & Test
run: |
cd Micro-XRCE-DDS
mkdir build
cd build
cmake ../ci/linux
make -j$(nproc)

# - name: Coverage
# run: |
# cd src/rosidl_typesupport_microxrcedds/rosidl_typesupport_microxrcedds_c
# gcovr -x -r . -o coverage.xml ../../../build --exclude-unreachable-branches
# curl -s https://codecov.io/bash -o codecov.bash && chmod +x codecov.bash
# ./codecov.bash -t ${{ secrets.CODECOV_TOKEN }}