Skip to content

Commit

Permalink
Add build files 2024-01-31-2049
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 31, 2024
1 parent 94606b1 commit 05d0f00
Show file tree
Hide file tree
Showing 123 changed files with 11,479 additions and 0 deletions.
196 changes: 196 additions & 0 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
jobs:
stage_0_job_0:
name: moveit-ros-planning move-base moveit-resources-prbt-moveit-config moveit-ros-control-interface
viz
runs-on: macos-11
strategy:
fail-fast: false
needs: []
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-ros-planning ros-noetic-move-base ros-noetic-moveit-resources-prbt-moveit-config
ros-noetic-moveit-ros-control-interface ros-noetic-viz
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-ros-planning ros-noetic-move-base ros-noetic-moveit-resources-prbt-moveit-config
ros-noetic-moveit-ros-control-interface ros-noetic-viz
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_0_job_1:
name: teb-local-planner simulators
runs-on: macos-11
strategy:
fail-fast: false
needs: []
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-teb-local-planner ros-noetic-simulators
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-teb-local-planner ros-noetic-simulators
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_1_job_2:
name: moveit-kinematics moveit-ros-warehouse moveit-ros-robot-interaction moveit-ros-perception
moveit-fake-controller-manager
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_0_job_0
- stage_0_job_1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-kinematics ros-noetic-moveit-ros-warehouse ros-noetic-moveit-ros-robot-interaction
ros-noetic-moveit-ros-perception ros-noetic-moveit-fake-controller-manager
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-kinematics ros-noetic-moveit-ros-warehouse
ros-noetic-moveit-ros-robot-interaction ros-noetic-moveit-ros-perception
ros-noetic-moveit-fake-controller-manager
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_1_job_3:
name: moveit-resources-prbt-pg70-support moveit-planners-ompl turtlebot3-navigation
desktop moveit-visual-tools
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_0_job_0
- stage_0_job_1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-resources-prbt-pg70-support ros-noetic-moveit-planners-ompl
ros-noetic-turtlebot3-navigation ros-noetic-desktop ros-noetic-moveit-visual-tools
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-resources-prbt-pg70-support ros-noetic-moveit-planners-ompl
ros-noetic-turtlebot3-navigation ros-noetic-desktop ros-noetic-moveit-visual-tools
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_2_job_4:
name: moveit-ros-move-group moveit-plugins moveit-ros-benchmarks desktop-full
turtlebot3
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_1_job_2
- stage_1_job_3
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-ros-move-group ros-noetic-moveit-plugins ros-noetic-moveit-ros-benchmarks
ros-noetic-desktop-full ros-noetic-turtlebot3
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-ros-move-group ros-noetic-moveit-plugins
ros-noetic-moveit-ros-benchmarks ros-noetic-desktop-full ros-noetic-turtlebot3
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_3_job_5:
name: moveit-ros-manipulation moveit-ros-planning-interface
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_2_job_4
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-ros-manipulation ros-noetic-moveit-ros-planning-interface
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-ros-manipulation ros-noetic-moveit-ros-planning-interface
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_4_job_6:
name: moveit-commander moveit-ros-visualization moveit-planners-chomp
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_3_job_5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-commander ros-noetic-moveit-ros-visualization
ros-noetic-moveit-planners-chomp
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-commander ros-noetic-moveit-ros-visualization
ros-noetic-moveit-planners-chomp
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_5_job_7:
name: pilz-industrial-motion-planner-testutils moveit-setup-assistant moveit-ros
pilz-industrial-motion-planner
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_4_job_6
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-pilz-industrial-motion-planner-testutils ros-noetic-moveit-setup-assistant
ros-noetic-moveit-ros ros-noetic-pilz-industrial-motion-planner
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-pilz-industrial-motion-planner-testutils ros-noetic-moveit-setup-assistant
ros-noetic-moveit-ros ros-noetic-pilz-industrial-motion-planner
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
stage_6_job_8:
name: moveit-planners moveit
runs-on: macos-11
strategy:
fail-fast: false
needs:
- stage_5_job_7
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build ros-noetic-moveit-planners ros-noetic-moveit
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
CURRENT_RECIPES: ros-noetic-moveit-planners ros-noetic-moveit
run: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
.scripts/build_osx.sh
name: build_osx
on:
push:
branches:
- buildbranch_osx
15 changes: 15 additions & 0 deletions activate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:: Generated by vinca http://github.com/RoboStack/vinca.
:: DO NOT EDIT!
@if not defined CONDA_PREFIX goto:eof

@REM Don't do anything when we are in conda build.
@if defined SYS_PREFIX exit /b 0

@set "QT_PLUGIN_PATH=%CONDA_PREFIX%\Library\plugins"

@call "%CONDA_PREFIX%\Library\local_setup.bat"
@set PYTHONHOME=
@set "ROS_OS_OVERRIDE=conda:win64"
@set "ROS_ETC_DIR=%CONDA_PREFIX%\Library\etc\ros"
@set "AMENT_PREFIX_PATH=%CONDA_PREFIX%\Library"
@set "AMENT_PYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe"
16 changes: 16 additions & 0 deletions activate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by vinca http://github.com/RoboStack/vinca.
# DO NOT EDIT!
if ($null -eq ${env:CONDA_PREFIX}) { Exit }

# Don't do anything when we are in conda build.
if ($null -ne ${env:SYS_PREFIX}) { Exit 0 }

$Env:QT_PLUGIN_PATH="${env:CONDA_PREFIX}\Library\plugins"

& "${env:CONDA_PREFIX}\Library\local_setup.ps1"

$Env:PYTHONHOME=''
$Env:ROS_OS_OVERRIDE='conda:win64'
$Env:ROS_ETC_DIR="${env:CONDA_PREFIX}\Library\etc\ros"
$Env:AMENT_PREFIX_PATH="${env:CONDA_PREFIX}\Library"
$Env:AMENT_PYTHON_EXECUTABLE="${env:CONDA_PREFIX}\python.exe"
26 changes: 26 additions & 0 deletions activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by vinca http://github.com/RoboStack/vinca.
# DO NOT EDIT!
# if [ -z "${CONDA_PREFIX}" ]; then
# exit 0;
# fi

# Not sure if this is necessary on UNIX?
# export QT_PLUGIN_PATH=$CONDA_PREFIX\plugins

if [ "$CONDA_BUILD" = "1" -a "$target_platform" != "$build_platform" ]; then
# ignore sourcing
echo "Not activating ROS when cross-compiling";
else
source $CONDA_PREFIX/setup.sh
fi

case "$OSTYPE" in
darwin*) export ROS_OS_OVERRIDE="conda:osx"; export RMW_IMPLEMENTATION="rmw_cyclonedds_cpp";;
linux*) export ROS_OS_OVERRIDE="conda:linux";;
esac

export ROS_ETC_DIR=$CONDA_PREFIX/etc/ros
export AMENT_PREFIX_PATH=$CONDA_PREFIX

# Looks unnecessary for UNIX
# unset PYTHONHOME=
38 changes: 38 additions & 0 deletions bld_ament_cmake.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
:: Generated by vinca http://github.com/RoboStack/vinca.
:: DO NOT EDIT!
setlocal EnableDelayedExpansion

set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"

:: MSVC is preferred.
set CC=cl.exe
set CXX=cl.exe

rd /s /q build
mkdir build
pushd build

:: set "CMAKE_GENERATOR=Ninja"

:: try to fix long paths issues by using default generator
set "CMAKE_GENERATOR=Visual Studio %VS_MAJOR% %VS_YEAR%"
set "SP_DIR_FORWARDSLASHES=%SP_DIR:\=/%"

cmake ^
-G "%CMAKE_GENERATOR%" ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^
-DPYTHON_EXECUTABLE=%PYTHON% ^
-DPython_EXECUTABLE=%PYTHON% ^
-DPython3_EXECUTABLE=%PYTHON% ^
-DSETUPTOOLS_DEB_LAYOUT=OFF ^
-DBUILD_SHARED_LIBS=ON ^
-DBUILD_TESTING=OFF ^
-DCMAKE_OBJECT_PATH_MAX=255 ^
-DPYTHON_INSTALL_DIR=%SP_DIR_FORWARDSLASHES% ^
%SRC_DIR%\%PKG_NAME%\src\work
if errorlevel 1 exit 1

cmake --build . --config Release --target install
if errorlevel 1 exit 1
21 changes: 21 additions & 0 deletions bld_ament_python.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:: Generated by vinca http://github.com/RoboStack/vinca.
:: DO NOT EDIT!
setlocal

set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"

pushd %SRC_DIR%\%PKG_NAME%\src\work

:: If there is a setup.cfg that contains install-scripts then use pip to install
findstr install[-_]scripts setup.cfg
if "%errorlevel%" == "0" (
%PYTHON% -m pip install . --no-deps -vvv
) else (
set "INSTALL_SCRIPTS_ARG=--install-scripts=%LIBRARY_PREFIX%\bin"
%PYTHON% setup.py install ^
--prefix=%LIBRARY_PREFIX% ^
--install-lib=%SP_DIR% ^
%INSTALL_SCRIPTS_ARG%
)

if errorlevel 1 exit 1
80 changes: 80 additions & 0 deletions bld_catkin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
:: Generated by vinca http://github.com/RoboStack/vinca.
:: DO NOT EDIT!
setlocal
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"

:: MSVC is preferred.
set CC=cl.exe
set CXX=cl.exe

:: ROS_BUILD_SHARED_LIBS is always defined in CMake by catkin
:: if ROS (1) is build as shared library . However, some packages are not
:: passing compilation flags from CMake to other build systems (such as qmake),
:: so we enable it explicitly via the CL environment variable, see
:: https://learn.microsoft.com/en-us/cpp/build/reference/cl-environment-variables?view=msvc-170
set CL=/DROS_BUILD_SHARED_LIBS=1 /DNOGDI=1

set "CATKIN_BUILD_BINARY_PACKAGE_ARGS=-DCATKIN_BUILD_BINARY_PACKAGE=1"
if "%PKG_NAME%" == "ros-noetic-catkin" (
:: create catkin cookie to make it is a catkin workspace
type NUL > %LIBRARY_PREFIX%\.catkin
:: keep the workspace activation scripts (e.g., local_setup.bat)
set CATKIN_BUILD_BINARY_PACKAGE_ARGS=
)

rd /s /q build
mkdir build
pushd build

set SKIP_TESTING=ON

cmake ^
-G "Ninja" ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON ^
-DBUILD_SHARED_LIBS=ON ^
-DPYTHON_EXECUTABLE=%PYTHON% ^
-DPython_EXECUTABLE=%PYTHON% ^
-DPython3_EXECUTABLE=%PYTHON% ^
-DSETUPTOOLS_DEB_LAYOUT=OFF ^
-DBoost_USE_STATIC_LIBS=OFF ^
%CATKIN_BUILD_BINARY_PACKAGE_ARGS% ^
-DCATKIN_SKIP_TESTING=%SKIP_TESTING% ^
%SRC_DIR%\%PKG_NAME%\src\work
if errorlevel 1 exit 1

if "%PKG_NAME%" == "ros-noetic-eigenpy" (
cmake --build . --config Release --target all --parallel 1
if errorlevel 1 exit 1
) else (
cmake --build . --config Release --target all
if errorlevel 1 exit 1
)

if "%SKIP_TESTING%" == "OFF" (
cmake --build . --config Release --target run_tests
if errorlevel 1 exit 1
)

cmake --build . --config Release --target install
if errorlevel 1 exit 1

if "%PKG_NAME%" == "ros-noetic-catkin" (
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
:: This will allow them to be run on environment activation.
for %%F in (activate deactivate) DO (
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
)
)

if "%PKG_NAME%" == "ros-noetic-ros-workspace" (
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
:: This will allow them to be run on environment activation.
for %%F in (activate deactivate) DO (
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
copy %RECIPE_DIR%\%%F.ps1 %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.ps1
)
)
Loading

0 comments on commit 05d0f00

Please sign in to comment.