Skip to content

Commit 4b39db0

Browse files
committed
Add build files 2026-09-28-0939
1 parent 0aa374d commit 4b39db0

36 files changed

Lines changed: 2594 additions & 0 deletions

‎.github/workflows/win.yml‎

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
jobs:
2+
stage_0_job_0:
3+
name: rosidl-adapter ros2pkg autoware-internal-localization-msgs zed-description
4+
py-trees-ros-interfaces py-trees-js rosidl-cmake py-trees-ros py-trees-ros-viewer
5+
runs-on: windows-2022
6+
strategy:
7+
fail-fast: false
8+
needs: []
9+
env:
10+
CONDA_BLD_PATH: C:\\bld\\
11+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v6
15+
- name: Setup pixi
16+
uses: prefix-dev/setup-pixi@v0.9.4
17+
with:
18+
pixi-version: v0.63.2
19+
cache: 'true'
20+
- uses: egor-tensin/cleanup-path@v5
21+
with:
22+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
23+
Files\Git\mingw64\bin
24+
- shell: cmd
25+
run: |
26+
set "CI=true"
27+
28+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
29+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
30+
set CPU_COUNT=4
31+
32+
set PYTHONUNBUFFERED=1
33+
34+
call setup_x64
35+
36+
:: Set the conda-build working directory to a smaller path
37+
if "%CONDA_BLD_PATH%" == "" (
38+
set "CONDA_BLD_PATH=C:\\bld\\"
39+
)
40+
41+
:: On azure, there are libcrypto*.dll & libssl*.dll under
42+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
43+
:: They would be found before the openssl libs of the conda environment, so we delete them.
44+
if defined CI (
45+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
46+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
47+
)
48+
49+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
50+
set "PATH=%PATH:ostedtoolcache=%"
51+
name: conda-forge build setup
52+
- shell: cmd
53+
run: |
54+
setlocal EnableExtensions EnableDelayedExpansion
55+
56+
set CONDA_BLD_PATH=C:\bld
57+
echo "PATH is %PATH%"
58+
59+
rmdir /Q/S C:\Strawberry\
60+
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
61+
62+
set "FEEDSTOCK_ROOT=%cd%"
63+
64+
mkdir %CONDA_BLD_PATH%
65+
66+
:: Enable long path names on Windows
67+
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
68+
69+
for %%X in (%CURRENT_RECIPES%) do (
70+
echo "BUILDING RECIPE %%X"
71+
cd %FEEDSTOCK_ROOT%\recipes\%%X\
72+
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
73+
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
74+
-c conda-forge -c robostack-staging ^
75+
--output-dir %CONDA_BLD_PATH%
76+
77+
if errorlevel 1 exit 1
78+
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
79+
)
80+
81+
:: Check if .conda files exist in the win-64 directory
82+
if exist "%CONDA_BLD_PATH%\win-64\*.conda" (
83+
echo Found .conda files, starting upload...
84+
for %%F in ("%CONDA_BLD_PATH%\win-64\*.conda") do (
85+
echo Uploading %%F
86+
pixi run upload "%%F" --force
87+
if errorlevel 1 exit 1
88+
)
89+
) else (
90+
echo Warning: No .conda files found in %CONDA_BLD_PATH%\win-64
91+
echo This might be due to all the packages being skipped
92+
)
93+
env:
94+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
95+
CURRENT_RECIPES: ros-humble-rosidl-adapter ros-humble-ros2pkg ros-humble-autoware-internal-localization-msgs
96+
ros-humble-zed-description ros-humble-py-trees-ros-interfaces ros-humble-py-trees-js
97+
ros-humble-rosidl-cmake ros-humble-py-trees-ros ros-humble-py-trees-ros-viewer
98+
PYTHONUNBUFFERED: 1
99+
name: Build ros-humble-rosidl-adapter ros-humble-ros2pkg ros-humble-autoware-internal-localization-msgs
100+
ros-humble-zed-description ros-humble-py-trees-ros-interfaces ros-humble-py-trees-js
101+
ros-humble-rosidl-cmake ros-humble-py-trees-ros ros-humble-py-trees-ros-viewer
102+
stage_1_job_1:
103+
name: py-trees-ros-tutorials
104+
runs-on: windows-2022
105+
strategy:
106+
fail-fast: false
107+
needs:
108+
- stage_0_job_0
109+
env:
110+
CONDA_BLD_PATH: C:\\bld\\
111+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
112+
steps:
113+
- name: Checkout code
114+
uses: actions/checkout@v6
115+
- name: Setup pixi
116+
uses: prefix-dev/setup-pixi@v0.9.4
117+
with:
118+
pixi-version: v0.63.2
119+
cache: 'true'
120+
- uses: egor-tensin/cleanup-path@v5
121+
with:
122+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
123+
Files\Git\mingw64\bin
124+
- shell: cmd
125+
run: |
126+
set "CI=true"
127+
128+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
129+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
130+
set CPU_COUNT=4
131+
132+
set PYTHONUNBUFFERED=1
133+
134+
call setup_x64
135+
136+
:: Set the conda-build working directory to a smaller path
137+
if "%CONDA_BLD_PATH%" == "" (
138+
set "CONDA_BLD_PATH=C:\\bld\\"
139+
)
140+
141+
:: On azure, there are libcrypto*.dll & libssl*.dll under
142+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
143+
:: They would be found before the openssl libs of the conda environment, so we delete them.
144+
if defined CI (
145+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
146+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
147+
)
148+
149+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
150+
set "PATH=%PATH:ostedtoolcache=%"
151+
name: conda-forge build setup
152+
- shell: cmd
153+
run: |
154+
setlocal EnableExtensions EnableDelayedExpansion
155+
156+
set CONDA_BLD_PATH=C:\bld
157+
echo "PATH is %PATH%"
158+
159+
rmdir /Q/S C:\Strawberry\
160+
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
161+
162+
set "FEEDSTOCK_ROOT=%cd%"
163+
164+
mkdir %CONDA_BLD_PATH%
165+
166+
:: Enable long path names on Windows
167+
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
168+
169+
for %%X in (%CURRENT_RECIPES%) do (
170+
echo "BUILDING RECIPE %%X"
171+
cd %FEEDSTOCK_ROOT%\recipes\%%X\
172+
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
173+
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
174+
-c conda-forge -c robostack-staging ^
175+
--output-dir %CONDA_BLD_PATH%
176+
177+
if errorlevel 1 exit 1
178+
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
179+
)
180+
181+
:: Check if .conda files exist in the win-64 directory
182+
if exist "%CONDA_BLD_PATH%\win-64\*.conda" (
183+
echo Found .conda files, starting upload...
184+
for %%F in ("%CONDA_BLD_PATH%\win-64\*.conda") do (
185+
echo Uploading %%F
186+
pixi run upload "%%F" --force
187+
if errorlevel 1 exit 1
188+
)
189+
) else (
190+
echo Warning: No .conda files found in %CONDA_BLD_PATH%\win-64
191+
echo This might be due to all the packages being skipped
192+
)
193+
env:
194+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
195+
CURRENT_RECIPES: ros-humble-py-trees-ros-tutorials
196+
PYTHONUNBUFFERED: 1
197+
name: Build ros-humble-py-trees-ros-tutorials
198+
name: build_win
199+
on:
200+
push:
201+
branches:
202+
- buildbranch_win

‎buildorder.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ros-humble-rosidl-adapter
2+
ros-humble-ros2pkg
3+
ros-humble-autoware-internal-localization-msgs
4+
ros-humble-zed-description
5+
ros-humble-py-trees-ros-interfaces
6+
ros-humble-py-trees-js
7+
ros-humble-rosidl-cmake
8+
ros-humble-py-trees-ros
9+
ros-humble-py-trees-ros-viewer
10+
ros-humble-py-trees-ros-tutorials
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
:: Generated by vinca http://github.com/RoboStack/vinca.
2+
:: DO NOT EDIT!
3+
setlocal EnableDelayedExpansion
4+
5+
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"
6+
7+
:: MSVC is preferred.
8+
set CC=cl.exe
9+
set CXX=cl.exe
10+
11+
:: If defined, can use a custom CMake build directory which can be useful
12+
:: to avoid too long path problems on windows
13+
if defined VINCA_CUSTOM_CMAKE_BUILD_DIR (
14+
if not exist "%VINCA_CUSTOM_CMAKE_BUILD_DIR%\" (
15+
mkdir "%VINCA_CUSTOM_CMAKE_BUILD_DIR%"
16+
)
17+
cd /d "%VINCA_CUSTOM_CMAKE_BUILD_DIR%"
18+
)
19+
rd /s /q build
20+
mkdir build
21+
pushd build
22+
23+
:: set "CMAKE_GENERATOR=Ninja"
24+
:: We use the Visual Studio generator as a workaround for
25+
:: problems in Ninja when using long paths, see https://github.com/RoboStack/ros-humble/pull/229#issuecomment-2564856467
26+
:: Once those are solved, we can switch back to use Ninja
27+
set "CMAKE_GENERATOR=Visual Studio %VS_MAJOR% %VS_YEAR%"
28+
29+
:: PYTHON_INSTALL_DIR should be a relative path, see
30+
:: https://github.com/ament/ament_cmake/blob/2.3.2/ament_cmake_python/README.md
31+
:: So we compute the relative path of %SP_DIR% w.r.t. to LIBRARY_PREFIX,
32+
:: but it is not trivial to do this in Command Prompt scripting, so let's do it via
33+
:: python
34+
35+
:: This line is scary, but it basically assigns the output of the command inside (` and `)
36+
:: to the variable specified after DO SET
37+
:: The equivalent in bash is PYTHON_INSTALL_DIR=`python -c ...`
38+
FOR /F "tokens=* USEBACKQ" %%i IN (`python -c "import os;print(os.path.relpath(os.environ['SP_DIR'],os.environ['LIBRARY_PREFIX']).replace('\\','/'))"`) DO SET PYTHON_INSTALL_DIR=%%i
39+
40+
cmake ^
41+
-G "%CMAKE_GENERATOR%" ^
42+
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
43+
-DCMAKE_BUILD_TYPE=Release ^
44+
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^
45+
-DPYTHON_EXECUTABLE=%PYTHON% ^
46+
-DPython_EXECUTABLE=%PYTHON% ^
47+
-DPython3_EXECUTABLE=%PYTHON% ^
48+
-DSETUPTOOLS_DEB_LAYOUT=OFF ^
49+
-DBUILD_SHARED_LIBS=ON ^
50+
-DBUILD_TESTING=OFF ^
51+
-DCMAKE_OBJECT_PATH_MAX=255 ^
52+
--compile-no-warning-as-error ^
53+
-DPYTHON_INSTALL_DIR=%PYTHON_INSTALL_DIR% ^
54+
^
55+
%SRC_DIR%\%PKG_NAME%\src\work\
56+
if errorlevel 1 exit 1
57+
58+
:: We explicitly pass %CPU_COUNT% to cmake --build as we are not using Ninja,
59+
:: see the comment before setting the CMAKE_GENERATOR env variable
60+
cmake --build . --config Release --parallel %CPU_COUNT% --target install
61+
if errorlevel 1 exit 1

0 commit comments

Comments
 (0)