Skip to content

Commit 0fd77c0

Browse files
committed
Add build files 2026-05-19-0228
1 parent f84531b commit 0fd77c0

9 files changed

Lines changed: 71599 additions & 0 deletions

File tree

.github/workflows/linux.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
jobs:
2+
stage_0_job_0:
3+
name: ur-client-library twist-stamper
4+
runs-on: ubuntu-latest
5+
strategy:
6+
fail-fast: false
7+
needs: []
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v6
11+
- name: Build ros-rolling-ur-client-library ros-rolling-twist-stamper
12+
env:
13+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
14+
CURRENT_RECIPES: ros-rolling-ur-client-library ros-rolling-twist-stamper
15+
BUILD_TARGET: ''
16+
run: |
17+
export CI=azure
18+
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
19+
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
20+
.scripts/build_unix.sh --target $BUILD_TARGET
21+
permissions:
22+
id-token: write
23+
attestations: write
24+
name: build_linux64
25+
on:
26+
push:
27+
branches:
28+
- buildbranch_linux

buildorder.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ros-rolling-ur-client-library
2+
ros-rolling-twist-stamper
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
:: Generated by vinca http://github.com/RoboStack/vinca.
2+
:: DO NOT EDIT!
3+
setlocal
4+
5+
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"
6+
7+
pushd %SRC_DIR%\%PKG_NAME%\src\work\
8+
set "PKG_NAME_SHORT=%PKG_NAME:*ros-rolling-=%"
9+
set "PKG_NAME_SHORT=%PKG_NAME_SHORT:-=_%"
10+
11+
:: If there is a setup.cfg that contains install-scripts then use pip to install
12+
findstr install[-_]scripts setup.cfg
13+
if "%errorlevel%" == "0" (
14+
%PYTHON% setup.py install --single-version-externally-managed --record=files.txt ^
15+
--prefix=%LIBRARY_PREFIX% ^
16+
--install-lib=%SP_DIR% ^
17+
--install-scripts=%LIBRARY_PREFIX%\lib\%PKG_NAME_SHORT%
18+
) else (
19+
%PYTHON% setup.py install --single-version-externally-managed --record=files.txt ^
20+
--prefix=%LIBRARY_PREFIX% ^
21+
--install-lib=%SP_DIR% ^
22+
--install-scripts=%LIBRARY_PREFIX%\bin
23+
)
24+
25+
if errorlevel 1 exit 1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by vinca http://github.com/RoboStack/vinca.
2+
# DO NOT EDIT!
3+
4+
set -eo pipefail
5+
6+
pushd $SRC_DIR/$PKG_NAME/src/work/
7+
8+
# If there is a setup.cfg that contains install-scripts then we should not set it here
9+
if [ -f setup.cfg ] && grep -q "install[-_]scripts" setup.cfg; then
10+
# Remove e.g. ros-humble- from PKG_NAME
11+
PKG_NAME_SHORT=${PKG_NAME#*ros-rolling-}
12+
# Substitute "-" with "_"
13+
PKG_NAME_SHORT=${PKG_NAME_SHORT//-/_}
14+
INSTALL_SCRIPTS_ARG="--install-scripts=$PREFIX/lib/$PKG_NAME_SHORT"
15+
echo "WARNING: setup.cfg not set, will set INSTALL_SCRIPTS_ARG to: $INSTALL_SCRIPTS_ARG"
16+
$PYTHON setup.py install --prefix="$PREFIX" --install-lib="$SP_DIR" $INSTALL_SCRIPTS_ARG --single-version-externally-managed --record=files.txt
17+
else
18+
$PYTHON -m pip install . --no-deps -vvv
19+
fi
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros-rolling-twist-stamper
5+
version: 0.0.5
6+
source:
7+
git: https://github.com/ros2-gbp/twist_stamper-release.git
8+
tag: release/rolling/twist_stamper/0.0.5-2
9+
target_directory: ros-rolling-twist-stamper/src/work
10+
11+
build:
12+
script: ${{ '$RECIPE_DIR/build_ament_python.sh' if unix or wasm32 else '%RECIPE_DIR%\\bld_ament_python.bat' }}
13+
number: 20
14+
post_process:
15+
- files:
16+
- '*.pc'
17+
regex: (?:-L|-I)?"?([^;\s]+/sysroot/)
18+
replacement: $$(CONDA_BUILD_SYSROOT_S)
19+
- files:
20+
- '*.cmake'
21+
regex: ([^;\s"]+/sysroot)
22+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
23+
- files:
24+
- '*.cmake'
25+
regex: ([^;\s"]+/MacOSX\d*\.?\d*\.sdk)
26+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
27+
about:
28+
repository: https://github.com/joshnewans/twist_stamper
29+
license: Apache-2.0
30+
summary: ROS2 package for converting between Twist and TwistStamped messages
31+
extra:
32+
recipe-maintainers:
33+
- ros-forge
34+
35+
requirements:
36+
build:
37+
- ${{ compiler('cxx') }}
38+
- ${{ compiler('c') }}
39+
- if: target_platform!='emscripten-wasm32'
40+
then:
41+
- ${{ stdlib('c') }}
42+
- ninja
43+
- python
44+
- setuptools
45+
- git
46+
- git-lfs
47+
- if: unix
48+
then:
49+
- patch
50+
- make
51+
- coreutils
52+
- if: win
53+
then:
54+
- m2-patch
55+
- if: osx
56+
then:
57+
- tapi
58+
- if: build_platform != target_platform
59+
then:
60+
- pkg-config
61+
- cmake
62+
- cython
63+
- if: build_platform != target_platform
64+
then:
65+
- python
66+
- cross-python_${{ target_platform }}
67+
- numpy
68+
host:
69+
- if: build_platform == target_platform
70+
then:
71+
- pkg-config
72+
- numpy
73+
- pip
74+
- pytest
75+
- python
76+
- ros-rolling-ament-copyright
77+
- ros-rolling-ament-flake8
78+
- ros-rolling-ament-pep257
79+
- ros-rolling-ros-environment
80+
- ros-rolling-ros-workspace
81+
- ros2-distro-mutex 0.16.* rolling_*
82+
- setuptools
83+
run:
84+
- python
85+
- ros-rolling-geometry-msgs
86+
- ros-rolling-rclpy
87+
- ros-rolling-ros-workspace
88+
- ros-rolling-std-msgs
89+
- ros2-distro-mutex 0.16.* rolling_*
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
:: Generated by vinca http://github.com/RoboStack/vinca.
2+
:: DO NOT EDIT!
3+
setlocal
4+
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"
5+
6+
:: MSVC is preferred.
7+
set CC=cl.exe
8+
set CXX=cl.exe
9+
10+
:: ROS_BUILD_SHARED_LIBS is always defined in CMake by catkin
11+
:: if ROS (1) is build as shared library . However, some packages are not
12+
:: passing compilation flags from CMake to other build systems (such as qmake),
13+
:: so we enable it explicitly via the CL environment variable, see
14+
:: https://learn.microsoft.com/en-us/cpp/build/reference/cl-environment-variables?view=msvc-170
15+
set CL=/DROS_BUILD_SHARED_LIBS=1 /DNOGDI=1
16+
17+
set "CATKIN_BUILD_BINARY_PACKAGE_ARGS=-DCATKIN_BUILD_BINARY_PACKAGE=1"
18+
if "%PKG_NAME%" == "ros-rolling-catkin" (
19+
:: create catkin cookie to make it is a catkin workspace
20+
type NUL > %LIBRARY_PREFIX%\.catkin
21+
:: keep the workspace activation scripts (e.g., local_setup.bat)
22+
set CATKIN_BUILD_BINARY_PACKAGE_ARGS=
23+
)
24+
25+
rd /s /q build
26+
mkdir build
27+
pushd build
28+
29+
set SKIP_TESTING=ON
30+
31+
cmake ^
32+
-G "Ninja" ^
33+
--compile-no-warning-as-error ^
34+
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
35+
-DCMAKE_BUILD_TYPE=Release ^
36+
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON ^
37+
-DBUILD_SHARED_LIBS=ON ^
38+
-DPYTHON_EXECUTABLE=%PYTHON% ^
39+
-DPython_EXECUTABLE=%PYTHON% ^
40+
-DPython3_EXECUTABLE=%PYTHON% ^
41+
-DSETUPTOOLS_DEB_LAYOUT=OFF ^
42+
-DBoost_USE_STATIC_LIBS=OFF ^
43+
%CATKIN_BUILD_BINARY_PACKAGE_ARGS% ^
44+
-DCATKIN_SKIP_TESTING=%SKIP_TESTING% ^
45+
^
46+
%SRC_DIR%\%PKG_NAME%\src\work\
47+
if errorlevel 1 exit 1
48+
49+
if "%PKG_NAME%" == "ros-rolling-eigenpy" (
50+
cmake --build . --config Release --target all --parallel 1
51+
if errorlevel 1 exit 1
52+
) else (
53+
cmake --build . --config Release --target all
54+
if errorlevel 1 exit 1
55+
)
56+
57+
if "%SKIP_TESTING%" == "OFF" (
58+
cmake --build . --config Release --target run_tests
59+
if errorlevel 1 exit 1
60+
)
61+
62+
cmake --build . --config Release --target install
63+
if errorlevel 1 exit 1
64+
65+
if "%PKG_NAME%" == "ros-rolling-catkin" (
66+
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
67+
:: This will allow them to be run on environment activation.
68+
for %%F in (activate deactivate) DO (
69+
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
70+
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
71+
)
72+
)
73+
74+
if "%PKG_NAME%" == "ros-rolling-ros-workspace" (
75+
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
76+
:: This will allow them to be run on environment activation.
77+
for %%F in (activate deactivate) DO (
78+
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
79+
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
80+
copy %RECIPE_DIR%\%%F.ps1 %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.ps1
81+
)
82+
)

0 commit comments

Comments
 (0)