From e69217b29fa9a14858303f4d8d3d61361091a49e Mon Sep 17 00:00:00 2001 From: Naci Dai Date: Sun, 9 Oct 2022 11:59:04 +0300 Subject: [PATCH] Added github actions for build and test --- .github/workflows/catkin-build.yml | 24 ++++++++++++++++++++++++ .gitignore | 5 ++++- README.md | 5 ++++- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/catkin-build.yml diff --git a/.github/workflows/catkin-build.yml b/.github/workflows/catkin-build.yml new file mode 100644 index 0000000..8788c70 --- /dev/null +++ b/.github/workflows/catkin-build.yml @@ -0,0 +1,24 @@ +name: Catkin Make (Build and Test) + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + container: eteration/muto-ros:noetic-desktop-full + steps: + - name: Checkout + uses: actions/checkout@v3 + + - run: | + mkdir -p $(pwd)/tmp/muto/src/ + ln -s $(pwd) $(pwd)/tmp/muto/src/composer + cd $(pwd)/tmp/muto + git clone --branch ${GITHUB_REF##*/} https://github.com/eclipse-muto/messages.git src/messages + git clone --branch ${GITHUB_REF##*/} https://github.com/eclipse-muto/core.git src/core + . /opt/ros/noetic/setup.sh + catkin_make + . $(pwd)/devel/setup.sh + catkin_make test || true + catkin_test_results --all --verbose + name: Build in ros container diff --git a/.gitignore b/.gitignore index 135933b..8b4339d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .vscode *.pyc -__pycache__ \ No newline at end of file +__pycache__ +tmp +build +devel diff --git a/README.md b/README.md index 06410d4..7967b0a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -# Muto Agent + +[![Catkin Make (Build and Test)](https://github.com/eclipse-muto/composer/actions/workflows/catkin-build.yml/badge.svg?branch=main)](https://github.com/eclipse-muto/composer/actions/workflows/catkin-build.yml) + +# Muto Composer ## Build After you checkou the repository, ource your ROS environment and make sure the additional dependencies such as the eclipse paho mqtt client library is installed.