forked from cogsys-tuebingen/csapex_core_plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
119 lines (113 loc) · 4.76 KB
/
catkin_make_isolated.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: catkin_make_isolated
on: [push, pull_request]
jobs:
build-16-kinetic:
runs-on: [ubuntu-16.04]
strategy:
fail-fast: false
matrix:
build_type: ["-DCMAKE_BUILD_TYPE=Debug", "-DCMAKE_BUILD_TYPE=Release"]
compiler: ["-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++"]
steps:
- name: remove-too-new-boost-not-compatible-with-actionlib
shell: bash
run: |
sudo rm -fr /usr/local/share/boost/1.69.0
- uses: actions/checkout@v1
with:
path: ws/src/csapex/src/csapex_plugins
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: clone_dependencies
run: |
cd ..
echo "Branch: ${{ steps.extract_branch.outputs.branch }}"
git clone https://github.com/betwo/csapex --branch ${{ steps.extract_branch.outputs.branch }}|| git clone https://github.com/betwo/csapex
git clone https://github.com/cogsys-tuebingen/cslibs_vision
git clone https://github.com/cogsys-tuebingen/cslibs_laser_processing
git clone https://github.com/cogsys-tuebingen/cslibs_arff
git clone https://github.com/cogsys-tuebingen/cslibs_indexed_storage
- uses: betwo/github-setup-catkin@master
with:
ros-version: 'kinetic'
workspace: $HOME/work/csapex_core_plugins/ws
- name: install_compiler
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get install -y software-properties-common build-essential g++-multilib
sudo apt-get update
sudo apt-get install -y gcc-7-multilib g++-7-multilib
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --set gcc "/usr/bin/gcc-7"
- name: build
run: |
cd $HOME/work/csapex_core_plugins/ws
catkin_make_isolated ${{ matrix.build_type }} ${{ matrix.compiler }}
build-18-melodic:
runs-on: [ubuntu-18.04]
strategy:
fail-fast: false
matrix:
build_type: ["-DCMAKE_BUILD_TYPE=Debug", "-DCMAKE_BUILD_TYPE=Release"]
compiler: ["-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++", "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"]
steps:
- uses: actions/checkout@v1
with:
path: ws/src/csapex/src/csapex_plugins
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: clone_dependencies
run: |
cd ..
git clone https://github.com/betwo/csapex --branch ${{ steps.extract_branch.outputs.branch }} || git clone https://github.com/betwo/csapex
git clone https://github.com/cogsys-tuebingen/cslibs_vision
git clone https://github.com/cogsys-tuebingen/cslibs_laser_processing
git clone https://github.com/cogsys-tuebingen/cslibs_arff
git clone https://github.com/cogsys-tuebingen/cslibs_indexed_storage
- uses: betwo/github-setup-catkin@master
with:
ros-version: 'melodic'
workspace: $HOME/work/csapex_core_plugins/ws
- name: install_compiler
run: sudo apt-get install -y gcc clang
- name: build
run: |
cd $HOME/work/csapex_core_plugins/ws
catkin_make_isolated ${{ matrix.build_type }} ${{ matrix.compiler }}
build-20-noetic:
runs-on: [ubuntu-20.04]
strategy:
fail-fast: false
matrix:
build_type: ["-DCMAKE_BUILD_TYPE=Debug", "-DCMAKE_BUILD_TYPE=Release"]
compiler: ["-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++", "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"]
steps:
- uses: actions/checkout@v1
with:
path: ws/src/csapex/src/csapex_plugins
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: clone_dependencies
run: |
cd ..
git clone https://github.com/betwo/csapex --branch ${{ steps.extract_branch.outputs.branch }} || git clone https://github.com/betwo/csapex
git clone https://github.com/cogsys-tuebingen/cslibs_vision
git clone https://github.com/cogsys-tuebingen/cslibs_laser_processing
git clone https://github.com/cogsys-tuebingen/cslibs_arff
git clone https://github.com/cogsys-tuebingen/cslibs_indexed_storage
- uses: betwo/github-setup-catkin@master
with:
ros-version: 'noetic'
workspace: $HOME/work/csapex_core_plugins/ws
- name: install_compiler
run: sudo apt-get install -y gcc clang
- name: build
run: |
cd $HOME/work/csapex_core_plugins/ws
catkin_make_isolated ${{ matrix.build_type }} ${{ matrix.compiler }}