-
-
Notifications
You must be signed in to change notification settings - Fork 471
Add cross-platform CI with conda packages (minimal version) #1636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rhaschke
merged 40 commits into
ros-visualization:noetic-devel
from
RoboStack:noetic-devel-cross-ci-new
Nov 3, 2021
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
40317b1
Create ci_cross_platform_env.yml
Tobias-Fischer 0ac9395
Create cross_platform_ci.yml
Tobias-Fischer 4e1f38a
Update CMakeLists.txt
Tobias-Fischer e51a155
fontdef was actually changed in ogre > 1.10
Tobias-Fischer 09efe39
Fixup OGRE_VERSION for fontdef
Tobias-Fischer 40b1fcb
Fixes for Win
Tobias-Fischer c0ec445
Fixes for Win
Tobias-Fischer ed8e50b
Fixes for Win
Tobias-Fischer 1c79ef2
Fixes for osx and win
Tobias-Fischer 3e16561
Fixes for Win
Tobias-Fischer 829612a
Fix whitespace
Tobias-Fischer b3360db
Try fix catkin_lint
Tobias-Fischer f189620
Add SYSTEM back in to include_directories
Tobias-Fischer eb5858d
Create windows_compat.h
Tobias-Fischer dcca458
Use windows_compat.h
Tobias-Fischer 433dcc9
Use windows_compat.h
Tobias-Fischer 4241203
Use windows_compat.h
Tobias-Fischer 9e81c2c
Pin openssl for now
Tobias-Fischer 3e6a765
Try not adding find_package(assimp REQUIRED)
Tobias-Fischer 7e17e7a
Switch to lower case assimp
Tobias-Fischer bd683a4
Update copyright
Tobias-Fischer d252cb6
Fix copyright
Tobias-Fischer 7a3126b
Check if YAML::Null still causes issues
Tobias-Fischer fae0c72
Add comment on Windows workaround for YAML::Null
Tobias-Fischer f29449c
Go back to ogre1.10 font def
Tobias-Fischer caba763
Undo rename
Tobias-Fischer a20da0e
Lint
Tobias-Fischer bc38df3
Merge branch 'ros-visualization:noetic-devel' into noetic-devel-cross…
Tobias-Fischer 9b1f9dd
Fix Windows compilation
Tobias-Fischer 59483a3
Lint
Tobias-Fischer b8666ee
Fix mamba provision version
Tobias-Fischer da74312
Shorten display name of GitHub action
Tobias-Fischer 449bba0
Rename ci_cross_platform_env.yml to robostack_env.yml
Tobias-Fischer a32d76d
Move unix dep install to dep install step and rename
Tobias-Fischer 4ccf52f
Lock in micromamba version
Tobias-Fischer 0b0aec2
Fix whitespace
Tobias-Fischer b54f518
Rename prerelease.yml to prerelease.yaml
Tobias-Fischer d633c6d
Rename robostack.yml to robostack.yaml
Tobias-Fischer 2ce0321
Rename robostack_env.yml to robostack_env.yaml
Tobias-Fischer c17370d
Fix
Tobias-Fischer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.