-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (59 loc) · 2.09 KB
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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"