forked from ros-visualization/rviz
-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (92 loc) · 3.38 KB
/
robostack.yaml
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
name: RoboStack
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- "[kmn]*-devel*"
jobs:
run_rviz_compilation:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Build Dependencies
uses: mamba-org/provision-with-micromamba@v11
with:
environment-file: .github/robostack_env.yaml
micromamba-version: "0.17.0"
- name: Set up rviz Dependencies on Unix
if: runner.os == 'Linux' || runner.os == 'macOS'
shell: bash -l -eo pipefail {0}
run: |
micromamba activate test
export PATH=$HOME/micromamba-bin:$PATH
if [[ `uname -s` == "Linux" ]]; then
CDT="-cos6-x86_64"
micromamba install -y mesa-libgl-devel$CDT mesa-dri-drivers$CDT \
libselinux$CDT libxdamage$CDT libxxf86vm$CDT \
libxext$CDT libxfixes$CDT -c conda-forge
fi
rosdep init
rosdep update
rosdep install --from-paths . --ignore-src -r -y
- name: Build rviz on Unix
if: runner.os == 'Linux' || runner.os == 'macOS'
shell: bash -l -eo pipefail {0}
run: |
export CTEST_OUTPUT_ON_FAILURE=1
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCATKIN_SKIP_TESTING=OFF \
-G "Ninja"
ninja
ninja run_tests
- name: Set up rviz Dependencies on Windows
if: runner.os == 'Windows'
shell: cmd
run: |
echo "Activate environment, and use rosdep to install dependencies"
call C:\Users\runneradmin\micromamba\condabin\micromamba.bat activate test
rosdep init
rosdep update
rosdep install --from-paths . --ignore-src -r -y
- name: Build rviz on Windows
if: runner.os == 'Windows'
shell: cmd
run: |
echo "Remove unnecessary / colliding things from PATH"
set "PATH=%PATH:C:\ProgramData\Chocolatey\bin;=%"
set "PATH=%PATH:C:\Program Files (x86)\sbt\bin;=%"
set "PATH=%PATH:C:\Rust\.cargo\bin;=%"
set "PATH=%PATH:C:\Program Files\Git\usr\bin;=%"
set "PATH=%PATH:C:\Program Files\Git\cmd;=%"
set "PATH=%PATH:C:\Program Files\Git\mingw64\bin;=%"
set "PATH=%PATH:C:\Program Files (x86)\Subversion\bin;=%"
set "PATH=%PATH:C:\Program Files\CMake\bin;=%"
set "PATH=%PATH:C:\Program Files\OpenSSL\bin;=%"
set "PATH=%PATH:C:\Strawberry\c\bin;=%"
set "PATH=%PATH:C:\Strawberry\perl\bin;=%"
set "PATH=%PATH:C:\Strawberry\perl\site\bin;=%"
set "PATH=%PATH:c:\tools\php;=%"
set "PATH=%PATH:ostedtoolcache=%"
call C:\Users\runneradmin\micromamba\condabin\micromamba.bat activate test
mkdir build
cd build
SET "CTEST_OUTPUT_ON_FAILURE=1"
cmake .. -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" ^
-DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%\Library" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCATKIN_SKIP_TESTING=OFF ^
-DBoost_USE_STATIC_LIBS=OFF ^
-G "Ninja"
ninja
ninja run_tests