Skip to content

Feature/sdp uwb waypoint #190

Feature/sdp uwb waypoint

Feature/sdp uwb waypoint #190

Workflow file for this run

name: ROS build and test workflow
# Copied from https://qiita.com/srs/items/86e115e59662738275f4 and then mocified
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-20.04
env:
CATKIN_WS: /home/runner/work/catkin_ws
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/package.xml') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-${{ hashFiles('**/package.xml') }}-${{ hashFiles('**/requirements.txt') }}
- name: Cache apt
uses: actions/cache@v2
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ github.run_id }}
restore-keys: ${{ runner.os }}-apt-${{ github.run_id }}
- name: Setup ROS
uses: ros-tooling/[email protected]
with:
required-ros-distributions: noetic
- name: Install catkin tool
run: sudo apt-get install python3-catkin-tools
- name: Update pip
run: |
pip3 install pip --upgrade
pip3 install pyopenssl --upgrade
pip3 uninstall em
pip3 install empy==3.3.4
- name: Init workspace
run: |
source /opt/ros/noetic/setup.bash
mkdir -p ${CATKIN_WS}/src
ln -s ${GITHUB_WORKSPACE} ${CATKIN_WS}/src/
- name: pre build
run: |
source /opt/ros/noetic/setup.bash
rosdep update
rosdep install -i -y --from-paths ./
- name: build
run: |
source /opt/ros/noetic/setup.bash
cd ${CATKIN_WS}
catkin build smart_device_protocol -vi
- name: run_tests
run: |
source /opt/ros/noetic/setup.bash
cd ${CATKIN_WS}
catkin run_tests smart_device_protocol -v