Skip to content

Commit 54daf26

Browse files
committed
Build files for humble win-64 2026-11-21-1248
1 parent e71c4b6 commit 54daf26

28 files changed

Lines changed: 3000 additions & 14 deletions

‎.github/workflows/build.yaml‎

Lines changed: 232 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,234 @@
1-
# Placeholder, so that GitHub names this workflow path "build" in the Actions list.
2-
#
3-
# The real build.yaml lives on the buildbranch_<distro>_<platform> branches (pushed by
4-
# main.yaml, generated by `rs <distro> gha`); every branch has its own, with
5-
# `run-name: <distro> <platform>`. GitHub shows one workflow per path and takes its name
6-
# from the default branch's file; without one on main it kept the name of the first
7-
# branch that registered the path. This file is never triggered on its own.
8-
name: build
9-
on:
10-
workflow_dispatch:
111
jobs:
12-
placeholder:
13-
runs-on: ubuntu-latest
14-
permissions: {}
2+
stage_0_job_0:
3+
name: rtabmap
4+
runs-on: windows-2022
5+
strategy:
6+
fail-fast: false
7+
env:
8+
CONDA_BLD_PATH: C:\\bld\\
9+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v7
13+
- name: Disable git auto-maintenance
14+
run: git config --global maintenance.auto false && git config --global gc.auto
15+
0
16+
- name: Setup pixi
17+
uses: prefix-dev/setup-pixi@v0.11.0
18+
with:
19+
pixi-version: v0.81.0
20+
cache: 'true'
21+
log-level: v
22+
frozen: 'true'
23+
- uses: egor-tensin/cleanup-path@v5
24+
with:
25+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
26+
Files\Git\mingw64\bin
27+
- shell: cmd
28+
run: |
29+
set "CI=true"
30+
31+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
32+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
33+
set CPU_COUNT=4
34+
35+
set PYTHONUNBUFFERED=1
36+
37+
call setup_x64
38+
39+
:: Set the conda-build working directory to a smaller path
40+
if "%CONDA_BLD_PATH%" == "" (
41+
set "CONDA_BLD_PATH=C:\\bld\\"
42+
)
43+
44+
:: Hosted runners may have libcrypto*.dll & libssl*.dll under
45+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
46+
:: They would be found before the openssl libs of the conda environment, so we delete them.
47+
if defined CI (
48+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
49+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
50+
)
51+
52+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
53+
set "PATH=%PATH:ostedtoolcache=%"
54+
name: conda-forge build setup
55+
- shell: cmd
56+
run: call .scripts\build_win.bat
57+
env:
58+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_HUMBLE }}
59+
CURRENT_RECIPES: ros2-rtabmap ros-humble-rtabmap
60+
PYTHONUNBUFFERED: 1
61+
name: Build
62+
- name: Keep build_timings.jsonl
63+
if: always()
64+
uses: actions/upload-artifact@v6
65+
with:
66+
name: ${{ github.job }}-${{ github.run_attempt }}
67+
path: distros/humble/work/build_timings.jsonl
68+
if-no-files-found: ignore
69+
retention-days: 30
70+
permissions:
71+
id-token: write
72+
contents: read
73+
attestations: write
74+
stage_0_job_1:
75+
name: rtabmap-rviz-plugins
76+
runs-on: windows-2022
77+
strategy:
78+
fail-fast: false
79+
env:
80+
CONDA_BLD_PATH: C:\\bld\\
81+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
1582
steps:
16-
- run: echo "Builds run from the buildbranch_<distro>_<platform> branches' own build.yaml."
83+
- name: Checkout code
84+
uses: actions/checkout@v7
85+
- name: Disable git auto-maintenance
86+
run: git config --global maintenance.auto false && git config --global gc.auto
87+
0
88+
- name: Setup pixi
89+
uses: prefix-dev/setup-pixi@v0.11.0
90+
with:
91+
pixi-version: v0.81.0
92+
cache: 'true'
93+
log-level: v
94+
frozen: 'true'
95+
- uses: egor-tensin/cleanup-path@v5
96+
with:
97+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
98+
Files\Git\mingw64\bin
99+
- shell: cmd
100+
run: |
101+
set "CI=true"
102+
103+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
104+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
105+
set CPU_COUNT=4
106+
107+
set PYTHONUNBUFFERED=1
108+
109+
call setup_x64
110+
111+
:: Set the conda-build working directory to a smaller path
112+
if "%CONDA_BLD_PATH%" == "" (
113+
set "CONDA_BLD_PATH=C:\\bld\\"
114+
)
115+
116+
:: Hosted runners may have libcrypto*.dll & libssl*.dll under
117+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
118+
:: They would be found before the openssl libs of the conda environment, so we delete them.
119+
if defined CI (
120+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
121+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
122+
)
123+
124+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
125+
set "PATH=%PATH:ostedtoolcache=%"
126+
name: conda-forge build setup
127+
- shell: cmd
128+
run: call .scripts\build_win.bat
129+
env:
130+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_HUMBLE }}
131+
CURRENT_RECIPES: ros2-rtabmap-rviz-plugins ros-humble-rtabmap-rviz-plugins
132+
PYTHONUNBUFFERED: 1
133+
name: Build
134+
- name: Keep build_timings.jsonl
135+
if: always()
136+
uses: actions/upload-artifact@v6
137+
with:
138+
name: ${{ github.job }}-${{ github.run_attempt }}
139+
path: distros/humble/work/build_timings.jsonl
140+
if-no-files-found: ignore
141+
retention-days: 30
142+
permissions:
143+
id-token: write
144+
contents: read
145+
attestations: write
146+
stage_1_job_2:
147+
name: rtabmap-viz
148+
runs-on: windows-2022
149+
strategy:
150+
fail-fast: false
151+
needs:
152+
- stage_0_job_0
153+
- stage_0_job_1
154+
env:
155+
CONDA_BLD_PATH: C:\\bld\\
156+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
157+
steps:
158+
- name: Checkout code
159+
uses: actions/checkout@v7
160+
- name: Disable git auto-maintenance
161+
run: git config --global maintenance.auto false && git config --global gc.auto
162+
0
163+
- name: Setup pixi
164+
uses: prefix-dev/setup-pixi@v0.11.0
165+
with:
166+
pixi-version: v0.81.0
167+
cache: 'true'
168+
log-level: v
169+
frozen: 'true'
170+
- uses: egor-tensin/cleanup-path@v5
171+
with:
172+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
173+
Files\Git\mingw64\bin
174+
- shell: cmd
175+
run: |
176+
set "CI=true"
177+
178+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
179+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
180+
set CPU_COUNT=4
181+
182+
set PYTHONUNBUFFERED=1
183+
184+
call setup_x64
185+
186+
:: Set the conda-build working directory to a smaller path
187+
if "%CONDA_BLD_PATH%" == "" (
188+
set "CONDA_BLD_PATH=C:\\bld\\"
189+
)
190+
191+
:: Hosted runners may have libcrypto*.dll & libssl*.dll under
192+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
193+
:: They would be found before the openssl libs of the conda environment, so we delete them.
194+
if defined CI (
195+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
196+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
197+
)
198+
199+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
200+
set "PATH=%PATH:ostedtoolcache=%"
201+
name: conda-forge build setup
202+
- shell: cmd
203+
run: call .scripts\build_win.bat
204+
env:
205+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_HUMBLE }}
206+
CURRENT_RECIPES: ros2-rtabmap-viz ros-humble-rtabmap-viz
207+
PYTHONUNBUFFERED: 1
208+
name: Build
209+
- name: Keep build_timings.jsonl
210+
if: always()
211+
uses: actions/upload-artifact@v6
212+
with:
213+
name: ${{ github.job }}-${{ github.run_attempt }}
214+
path: distros/humble/work/build_timings.jsonl
215+
if-no-files-found: ignore
216+
retention-days: 30
217+
permissions:
218+
id-token: write
219+
contents: read
220+
attestations: write
221+
name: build
222+
run-name: humble win-64
223+
concurrency:
224+
group: build-humble-win-64
225+
cancel-in-progress: true
226+
on:
227+
push:
228+
branches:
229+
- buildbranch_humble_win_64
230+
env:
231+
ROBOSTACK_DISTRO: humble
232+
# optional repository variable: upload to this prefix.dev channel instead
233+
# (e.g. a test channel), or 'none' to only build
234+
ROBOSTACK_UPLOAD_CHANNEL: ${{ vars.ROBOSTACK_UPLOAD_CHANNEL }}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
3+
4+
# Default values
5+
target=""
6+
7+
# Parse arguments
8+
while [[ "$#" -gt 0 ]]; do
9+
case $1 in
10+
--target) target="$2"; shift ;; # Capture value for --target
11+
*) echo "Unknown parameter passed: $1"; exit 1 ;; # Handle invalid options
12+
esac
13+
shift
14+
done
15+
16+
set -xeuo pipefail
17+
export PYTHONUNBUFFERED=1
18+
19+
# ROBOSTACK_DISTRO is set by the generated build workflow (tools/robostack.py gha).
20+
: "${ROBOSTACK_DISTRO:?ROBOSTACK_DISTRO is not set}"
21+
cd "distros/${ROBOSTACK_DISTRO}/work"
22+
export FEEDSTOCK_ROOT=`pwd`
23+
export "CONDA_BLD_PATH=$HOME/conda-bld/"
24+
25+
if [[ "$target" == *"osx"* ]]; then
26+
echo "osx"
27+
# Spotlight indexes every file the environments and builds write, using up to a
28+
# core or two of the runner's three or four; the runner is thrown away after the job
29+
sudo mdutil -a -i off || true
30+
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')
31+
fi
32+
33+
# All of the job's recipes in one build-ci run (tools/robostack.py), which builds
34+
# independent ones in parallel and adds the variant config and the distro's channels.
35+
recipe_args=()
36+
for recipe in ${CURRENT_RECIPES[@]}; do
37+
recipe_args+=(--recipe "${FEEDSTOCK_ROOT}/recipes/${recipe}")
38+
done
39+
pixi run -v rs "${ROBOSTACK_DISTRO}" build-ci "${recipe_args[@]}" --output-dir $CONDA_BLD_PATH
40+
41+
# Check if it build something, this is a hotfix for the skips inside additional_recipes
42+
shopt -s nullglob
43+
conda_packages=( "${CONDA_BLD_PATH}/${target}"*/*.conda )
44+
if (( ${#conda_packages[@]} > 0 )); then
45+
# Upload packages one-by-one; the upload task (tools/robostack.py) uploads them to
46+
# prefix.dev and anaconda.org and skips packages that are already there.
47+
for conda_package in "${conda_packages[@]}"; do
48+
pixi run rs "${ROBOSTACK_DISTRO}" upload "${conda_package}"
49+
done
50+
else
51+
echo "Warning: No .conda files found in ${CONDA_BLD_PATH}/${target}"
52+
echo "This might be due to all the packages being skipped"
53+
fi
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
setlocal EnableExtensions EnableDelayedExpansion
3+
4+
:: Defender's real-time scan slows down installing and deleting the environments'
5+
:: files several times over; the runner is thrown away after the job
6+
powershell -NoProfile -Command "Set-MpPreference -DisableRealtimeMonitoring $true"
7+
8+
:: The builds, rattler's package cache (on the same drive, for hardlinks) and the
9+
:: temporary files on D:, about three times as fast as C: on GitHub's runners
10+
set CONDA_BLD_PATH=D:\bld
11+
set VINCA_CUSTOM_CMAKE_BUILD_DIR=D:\x\
12+
set RATTLER_CACHE_DIR=D:\rattler
13+
set TMP=D:\tmp
14+
set TEMP=D:\tmp
15+
mkdir D:\tmp
16+
powershell -NoProfile -Command "Get-PSDrive C, D | Format-Table Name, @{n='free GB'; e={[math]::Round($_.Free / 1GB)}}"
17+
echo "PATH is %PATH%"
18+
19+
rmdir /Q/S C:\Strawberry\
20+
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
21+
22+
:: ROBOSTACK_DISTRO is set by the generated build workflow (tools/robostack.py gha).
23+
cd distros\%ROBOSTACK_DISTRO%\work
24+
set "FEEDSTOCK_ROOT=%cd%"
25+
26+
mkdir %CONDA_BLD_PATH%
27+
28+
:: Enable long path names on Windows
29+
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
30+
:: ... and in git, for sources that vendor packages clone during the build
31+
git config --global core.longpaths true
32+
33+
:: All of the job's recipes in one build-ci run (tools/robostack.py), which builds
34+
:: independent ones in parallel and adds the variant config and the distro's channels.
35+
set RECIPE_ARGS=
36+
for %%X in (%CURRENT_RECIPES%) do set "RECIPE_ARGS=!RECIPE_ARGS! --recipe %FEEDSTOCK_ROOT%\recipes\%%X\"
37+
pixi run -v rs %ROBOSTACK_DISTRO% build-ci !RECIPE_ARGS! --output-dir %CONDA_BLD_PATH%
38+
if errorlevel 1 exit 1
39+
40+
:: Check if .conda files exist in the win-64 directory
41+
if exist "%CONDA_BLD_PATH%\win-64\*.conda" (
42+
echo Found .conda files, starting upload...
43+
rem Upload packages one-by-one; the upload task (tools/robostack.py) uploads them to
44+
rem prefix.dev and anaconda.org and skips packages that are already there.
45+
for %%F in ("%CONDA_BLD_PATH%\win-64\*.conda") do (
46+
echo Uploading %%~fF
47+
pixi run rs %ROBOSTACK_DISTRO% upload "%%~fF"
48+
if errorlevel 1 exit 1
49+
)
50+
) else (
51+
echo Warning: No .conda files found in %CONDA_BLD_PATH%\win-64
52+
echo This might be due to all the packages being skipped
53+
)

‎distros/humble/work/build_timings.json‎

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

‎distros/humble/work/buildorder.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ros2-rtabmap
2+
ros2-rtabmap-rviz-plugins
3+
ros2-rtabmap-viz
4+
ros-humble-rtabmap
5+
ros-humble-rtabmap-rviz-plugins
6+
ros-humble-rtabmap-viz

0 commit comments

Comments
 (0)