Skip to content

Commit a0ef259

Browse files
committed
Build files for humble win-64 2026-11-25-2216
1 parent 59318ed commit a0ef259

33 files changed

Lines changed: 5032 additions & 14 deletions

‎.github/workflows/build.yaml‎

Lines changed: 305 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,307 @@
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: moveit-core
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-moveit-core ros-humble-moveit-core
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: ros-gz-bridge
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\\
82+
steps:
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-ros-gz-bridge
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_0_job_2:
147+
name: tf2-bullet pymoveit2
148+
runs-on: windows-2022
149+
strategy:
150+
fail-fast: false
151+
env:
152+
CONDA_BLD_PATH: C:\\bld\\
153+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
15154
steps:
16-
- run: echo "Builds run from the buildbranch_<distro>_<platform> branches' own build.yaml."
155+
- name: Checkout code
156+
uses: actions/checkout@v7
157+
- name: Disable git auto-maintenance
158+
run: git config --global maintenance.auto false && git config --global gc.auto
159+
0
160+
- name: Setup pixi
161+
uses: prefix-dev/setup-pixi@v0.11.0
162+
with:
163+
pixi-version: v0.81.0
164+
cache: 'true'
165+
log-level: v
166+
frozen: 'true'
167+
- uses: egor-tensin/cleanup-path@v5
168+
with:
169+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
170+
Files\Git\mingw64\bin
171+
- shell: cmd
172+
run: |
173+
set "CI=true"
174+
175+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
176+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
177+
set CPU_COUNT=4
178+
179+
set PYTHONUNBUFFERED=1
180+
181+
call setup_x64
182+
183+
:: Set the conda-build working directory to a smaller path
184+
if "%CONDA_BLD_PATH%" == "" (
185+
set "CONDA_BLD_PATH=C:\\bld\\"
186+
)
187+
188+
:: Hosted runners may have libcrypto*.dll & libssl*.dll under
189+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
190+
:: They would be found before the openssl libs of the conda environment, so we delete them.
191+
if defined CI (
192+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
193+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
194+
)
195+
196+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
197+
set "PATH=%PATH:ostedtoolcache=%"
198+
name: conda-forge build setup
199+
- shell: cmd
200+
run: call .scripts\build_win.bat
201+
env:
202+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_HUMBLE }}
203+
CURRENT_RECIPES: ros2-tf2-bullet ros-humble-tf2-bullet ros2-pymoveit2 ros-humble-pymoveit2
204+
PYTHONUNBUFFERED: 1
205+
name: Build
206+
- name: Keep build_timings.jsonl
207+
if: always()
208+
uses: actions/upload-artifact@v6
209+
with:
210+
name: ${{ github.job }}-${{ github.run_attempt }}
211+
path: distros/humble/work/build_timings.jsonl
212+
if-no-files-found: ignore
213+
retention-days: 30
214+
permissions:
215+
id-token: write
216+
contents: read
217+
attestations: write
218+
stage_1_job_3:
219+
name: ros-gz-image
220+
runs-on: windows-2022
221+
strategy:
222+
fail-fast: false
223+
needs:
224+
- stage_0_job_0
225+
- stage_0_job_1
226+
- stage_0_job_2
227+
env:
228+
CONDA_BLD_PATH: C:\\bld\\
229+
VINCA_CUSTOM_CMAKE_BUILD_DIR: C:\\x\\
230+
steps:
231+
- name: Checkout code
232+
uses: actions/checkout@v7
233+
- name: Disable git auto-maintenance
234+
run: git config --global maintenance.auto false && git config --global gc.auto
235+
0
236+
- name: Setup pixi
237+
uses: prefix-dev/setup-pixi@v0.11.0
238+
with:
239+
pixi-version: v0.81.0
240+
cache: 'true'
241+
log-level: v
242+
frozen: 'true'
243+
- uses: egor-tensin/cleanup-path@v5
244+
with:
245+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
246+
Files\Git\mingw64\bin
247+
- shell: cmd
248+
run: |
249+
set "CI=true"
250+
251+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
252+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
253+
set CPU_COUNT=4
254+
255+
set PYTHONUNBUFFERED=1
256+
257+
call setup_x64
258+
259+
:: Set the conda-build working directory to a smaller path
260+
if "%CONDA_BLD_PATH%" == "" (
261+
set "CONDA_BLD_PATH=C:\\bld\\"
262+
)
263+
264+
:: Hosted runners may have libcrypto*.dll & libssl*.dll under
265+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
266+
:: They would be found before the openssl libs of the conda environment, so we delete them.
267+
if defined CI (
268+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
269+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
270+
)
271+
272+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
273+
set "PATH=%PATH:ostedtoolcache=%"
274+
name: conda-forge build setup
275+
- shell: cmd
276+
run: call .scripts\build_win.bat
277+
env:
278+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_HUMBLE }}
279+
CURRENT_RECIPES: ros2-ros-gz-image
280+
PYTHONUNBUFFERED: 1
281+
name: Build
282+
- name: Keep build_timings.jsonl
283+
if: always()
284+
uses: actions/upload-artifact@v6
285+
with:
286+
name: ${{ github.job }}-${{ github.run_attempt }}
287+
path: distros/humble/work/build_timings.jsonl
288+
if-no-files-found: ignore
289+
retention-days: 30
290+
permissions:
291+
id-token: write
292+
contents: read
293+
attestations: write
294+
name: build
295+
run-name: humble win-64
296+
concurrency:
297+
group: build-humble-win-64
298+
cancel-in-progress: true
299+
on:
300+
push:
301+
branches:
302+
- buildbranch_humble_win_64
303+
env:
304+
ROBOSTACK_DISTRO: humble
305+
# optional repository variable: upload to this prefix.dev channel instead
306+
# (e.g. a test channel), or 'none' to only build
307+
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

0 commit comments

Comments
 (0)