diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2d2fe9a --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }}