Skip to content

Commit 718369e

Browse files
committed
Add build files 2026-09-04-0831
1 parent 6be7cc9 commit 718369e

13 files changed

Lines changed: 181817 additions & 133 deletions

File tree

.github/workflows/osx_arm64.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: cli ros2-ros2cli rosidl-cli ros2cli
4+
runs-on: macos-15
5+
strategy:
6+
fail-fast: false
7+
needs: []
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v6
11+
- name: Build ros2-rosidl-cli ros2-ros2cli ros-rolling-rosidl-cli ros-rolling-ros2cli
12+
env:
13+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
14+
CURRENT_RECIPES: ros2-rosidl-cli ros2-ros2cli ros-rolling-rosidl-cli ros-rolling-ros2cli
15+
BUILD_TARGET: osx-arm64
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_osx_arm64
25+
on:
26+
push:
27+
branches:
28+
- buildbranch_osx_arm64

buildorder.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ros2-rosidl-cli
2+
ros2-ros2cli
3+
ros-rolling-rosidl-cli
4+
ros-rolling-ros2cli

pixi.lock

Lines changed: 133 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros-rolling-ros2cli
5+
version: 0.41.1
6+
7+
build:
8+
script: ''
9+
number: 26
10+
post_process:
11+
- files:
12+
- '*.pc'
13+
regex: (?:-L|-I)?"?([^;\s]+/sysroot/)
14+
replacement: $$(CONDA_BUILD_SYSROOT_S)
15+
- files:
16+
- '*.cmake'
17+
regex: ([^;\s"]+/sysroot)
18+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
19+
- files:
20+
- '*.cmake'
21+
regex: ([^;\s"]+/MacOSX\d*\.?\d*\.sdk)
22+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
23+
about:
24+
summary: Compatibility package for ros2-ros2cli
25+
extra:
26+
recipe-maintainers:
27+
- ros-forge
28+
29+
requirements:
30+
run:
31+
- ros2-ros2cli ==0.41.1
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros-rolling-rosidl-cli
5+
version: 5.3.1
6+
7+
build:
8+
script: ''
9+
number: 26
10+
post_process:
11+
- files:
12+
- '*.pc'
13+
regex: (?:-L|-I)?"?([^;\s]+/sysroot/)
14+
replacement: $$(CONDA_BUILD_SYSROOT_S)
15+
- files:
16+
- '*.cmake'
17+
regex: ([^;\s"]+/sysroot)
18+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
19+
- files:
20+
- '*.cmake'
21+
regex: ([^;\s"]+/MacOSX\d*\.?\d*\.sdk)
22+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
23+
about:
24+
summary: Compatibility package for ros2-rosidl-cli
25+
extra:
26+
recipe-maintainers:
27+
- ros-forge
28+
29+
requirements:
30+
run:
31+
- ros2-rosidl-cli ==5.3.1
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:*ros2-=%"
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. ros2- or ros- from PKG_NAME
11+
PKG_NAME_SHORT=${PKG_NAME#*ros2-}
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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
diff --git a/ros2cli/completion/ros2-argcomplete.zsh b/ros2cli/completion/ros2-argcomplete.zsh
2+
index b9fc309..14279de 100644
3+
--- a/ros2cli/completion/ros2-argcomplete.zsh
4+
+++ b/ros2cli/completion/ros2-argcomplete.zsh
5+
@@ -20,6 +20,6 @@ autoload -U +X bashcompinit && bashcompinit
6+
# Get this scripts directory
7+
__ros2cli_completion_dir=${0:a:h}
8+
# Just source the bash version, it works in zsh too
9+
-source "$__ros2cli_completion_dir/ros2-argcomplete.bash"
10+
+source "$CONDA_PREFIX/share/bash-completion/completions/ros2-argcomplete.bash"
11+
# Cleanup
12+
unset __ros2cli_completion_dir
13+
diff --git a/ros2cli/setup.py b/ros2cli/setup.py
14+
index 458010c..c08d015 100644
15+
--- a/ros2cli/setup.py
16+
+++ b/ros2cli/setup.py
17+
@@ -24,6 +24,17 @@ setup(
18+
'completion/ros2-argcomplete.fish',
19+
'completion/ros2-argcomplete.zsh',
20+
]),
21+
+
22+
+ # [pixi] install autocompletion scripts
23+
+ ('share/bash-completion/completions', [
24+
+ 'completion/ros2-argcomplete.bash',
25+
+ ]),
26+
+ ('share/zsh/site-functions', [
27+
+ 'completion/ros2-argcomplete.zsh',
28+
+ ]),
29+
+ ('share/fish/vendor_completions.d', [
30+
+ 'completion/ros2-argcomplete.fish',
31+
+ ]),
32+
],
33+
package_data={'': ['py.typed']},
34+
zip_safe=False,

recipes/ros2-ros2cli/recipe.yaml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros2-ros2cli
5+
version: 0.41.1
6+
source:
7+
git: https://github.com/ros2-gbp/ros2cli-release.git
8+
tag: release/rolling/ros2cli/0.41.1-1
9+
target_directory: ros2-ros2cli/src/work
10+
patches:
11+
- patch/ros-rolling-ros2cli.patch
12+
13+
build:
14+
script: ${{ '$RECIPE_DIR/build_ament_python.sh' if unix or wasm32 else '%RECIPE_DIR%\\bld_ament_python.bat' }}
15+
number: 26
16+
post_process:
17+
- files:
18+
- '*.pc'
19+
regex: (?:-L|-I)?"?([^;\s]+/sysroot/)
20+
replacement: $$(CONDA_BUILD_SYSROOT_S)
21+
- files:
22+
- '*.cmake'
23+
regex: ([^;\s"]+/sysroot)
24+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
25+
- files:
26+
- '*.cmake'
27+
regex: ([^;\s"]+/MacOSX\d*\.?\d*\.sdk)
28+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
29+
about:
30+
license: Apache-2.0
31+
summary: Framework for ROS 2 command line tools.
32+
extra:
33+
recipe-maintainers:
34+
- ros-forge
35+
36+
requirements:
37+
build:
38+
- ${{ compiler('cxx') }}
39+
- ${{ compiler('c') }}
40+
- if: target_platform!='emscripten-wasm32'
41+
then:
42+
- ${{ stdlib('c') }}
43+
- ninja
44+
- python
45+
- setuptools
46+
- git
47+
- git-lfs
48+
- if: unix
49+
then:
50+
- patch
51+
- make
52+
- coreutils
53+
- if: win
54+
then:
55+
- m2-patch
56+
- if: osx
57+
then:
58+
- tapi
59+
- if: build_platform != target_platform
60+
then:
61+
- pkg-config
62+
- cmake
63+
- cython
64+
- if: build_platform != target_platform
65+
then:
66+
- python
67+
- cross-python_${{ target_platform }}
68+
- numpy
69+
host:
70+
- if: build_platform == target_platform
71+
then:
72+
- pkg-config
73+
- numpy
74+
- pip
75+
- pytest
76+
- pytest-timeout
77+
- python
78+
- ros2-ament-copyright
79+
- ros2-ament-flake8
80+
- ros2-ament-pep257
81+
- ros2-ament-xmllint
82+
- ros2-distro-mutex 0.20.* rolling_*
83+
- ros2-rmw-test-fixture-implementation
84+
- ros2-ros-environment
85+
- ros2-ros-workspace
86+
- ros2-test-msgs
87+
- setuptools
88+
run:
89+
- argcomplete
90+
- packaging
91+
- psutil
92+
- python
93+
- ros2-distro-mutex 0.20.* rolling_*
94+
- ros2-rclpy
95+
- ros2-ros-workspace
96+
tests:
97+
- script:
98+
- if: unix
99+
then:
100+
- test -f ${PREFIX}/share/bash-completion/completions/ros2-argcomplete.bash
101+
- test -f ${PREFIX}/share/zsh/site-functions/ros2-argcomplete.zsh
102+
- test -f ${PREFIX}/share/fish/vendor_completions.d/ros2-argcomplete.fish
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:*ros2-=%"
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

0 commit comments

Comments
 (0)