Skip to content

peripheral: add lift controller node #3

peripheral: add lift controller node

peripheral: add lift controller node #3

Workflow file for this run

name: default
on:
push:
branches:
- "**"
- "!experiment-*"
pull_request:
branches:
- "**"
jobs:
build:
strategy:
matrix:
container: ["westonrobot/ros:humble-ci-latest"]
runner: ["ubuntu-latest"]
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
defaults:
run:
shell: bash
steps:
- name: Upgrade git if on Ubuntu 18.04
if: |
contains(matrix.container, 'bionic') || contains(matrix.container, 'zephyr') || contains(matrix.container, 'melodic')
run: |
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install -y git
- name: Create colcon workspace
run: |
mkdir -p ${GITHUB_WORKSPACE}/colcon_ws/src
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
path: "colcon_ws/src/"
- name: Install latest wrp_sdk
run: |
echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/weston-robot.list
curl -sSL 'https://westonrobot.jfrog.io/artifactory/api/security/keypair/wr-deb/public' | apt-key add -
apt-get update && apt-get -y install wrp-sdk
- name: Install latest lely-can
run: |
add-apt-repository ppa:lely/ppa
apt-get update && apt-get -y install pkg-config liblely-coapp-dev liblely-co-tools
- name: Install ROS dependencies
run: |
apt-get install -y python3-rosdep
if [ ! -e /etc/ros/rosdep/sources.list.d/20-default.list ]; then rosdep init; fi
cd ${GITHUB_WORKSPACE}/colcon_ws
source /opt/ros/${ROS_DISTRO}/setup.bash
rosdep update
rosdep install -y -r --ignore-src --from-paths src --rosdistro ${ROS_DISTRO}
- name: Colcon build
run: |
cd ${GITHUB_WORKSPACE}/colcon_ws
source /opt/ros/${ROS_DISTRO}/setup.bash
colcon build --symlink-install --cmake-args " -DCMAKE_BUILD_TYPE=Release"