-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add RoboStack cross-platform build (#1636)
Co-authored-by: Robert Haschke <[email protected]>
- Loading branch information
1 parent
a4919f5
commit 3924f0e
Showing
12 changed files
with
185 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: test | ||
channels: | ||
- robostack | ||
- conda-forge | ||
dependencies: | ||
- compilers | ||
- ninja | ||
- cmake | ||
- catkin_pkg | ||
- pkg-config | ||
- rosdep | ||
- rosdistro | ||
- ros-distro-mutex 0.1 noetic | ||
- ros-noetic-catkin | ||
- ros-noetic-ros-environment | ||
- openssl 1.1.1* |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (c) 2021, Tobias Fischer, Queensland University of Technology | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* * Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* * Neither the name of the Queensland Uni of Technology nor the names of its | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef WINDOWS_COMPAT_H | ||
#define WINDOWS_COMPAT_H | ||
|
||
#ifdef _WIN32 | ||
|
||
#ifdef ERROR | ||
#undef ERROR | ||
#endif | ||
|
||
#ifdef DELETE | ||
#undef DELETE | ||
#endif | ||
|
||
#endif // _WIN32 | ||
|
||
#endif // WINDOWS_COMPAT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters