Skip to content

Commit dbdccb2

Browse files
committed
Build files for jazzy linux-64 2026-11-26-1035
1 parent 773fcd3 commit dbdccb2

50 files changed

Lines changed: 5084 additions & 13 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yaml‎

Lines changed: 223 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,226 @@
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:
2+
stage_0_job_0:
3+
name: rclcpp
4+
runs-on: ubuntu-latest
5+
strategy:
6+
fail-fast: false
7+
steps:
8+
- name: Checkout code
9+
uses: actions/checkout@v7
10+
- name: Disable git auto-maintenance
11+
run: git config --global maintenance.auto false && git config --global gc.auto
12+
0
13+
- name: Setup pixi
14+
uses: prefix-dev/setup-pixi@v0.11.0
15+
with:
16+
pixi-version: v0.81.0
17+
cache: 'true'
18+
log-level: v
19+
frozen: 'true'
20+
- name: Build
21+
env:
22+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_JAZZY }}
23+
CURRENT_RECIPES: ros2-rclcpp ros-jazzy-rclcpp
24+
BUILD_TARGET: ''
25+
run: |
26+
export CI=github
27+
export GIT_BRANCH=${GITHUB_REF_NAME}
28+
export FEEDSTOCK_NAME=${GITHUB_REPOSITORY##*/}
29+
.scripts/build_unix.sh --target $BUILD_TARGET
30+
- name: Keep build_timings.jsonl
31+
if: always()
32+
uses: actions/upload-artifact@v6
33+
with:
34+
name: ${{ github.job }}-${{ github.run_attempt }}
35+
path: distros/jazzy/work/build_timings.jsonl
36+
if-no-files-found: ignore
37+
retention-days: 30
38+
permissions:
39+
id-token: write
40+
contents: read
41+
attestations: write
42+
stage_0_job_1:
43+
name: gz-dartsim-vendor tf2-bullet pymoveit2
44+
runs-on: ubuntu-latest
45+
strategy:
46+
fail-fast: false
47+
steps:
48+
- name: Checkout code
49+
uses: actions/checkout@v7
50+
- name: Disable git auto-maintenance
51+
run: git config --global maintenance.auto false && git config --global gc.auto
52+
0
53+
- name: Setup pixi
54+
uses: prefix-dev/setup-pixi@v0.11.0
55+
with:
56+
pixi-version: v0.81.0
57+
cache: 'true'
58+
log-level: v
59+
frozen: 'true'
60+
- name: Build
61+
env:
62+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_JAZZY }}
63+
CURRENT_RECIPES: ros2-gz-dartsim-vendor ros-jazzy-gz-dartsim-vendor ros2-tf2-bullet
64+
ros-jazzy-tf2-bullet ros2-pymoveit2 ros-jazzy-pymoveit2
65+
BUILD_TARGET: ''
66+
run: |
67+
export CI=github
68+
export GIT_BRANCH=${GITHUB_REF_NAME}
69+
export FEEDSTOCK_NAME=${GITHUB_REPOSITORY##*/}
70+
.scripts/build_unix.sh --target $BUILD_TARGET
71+
- name: Keep build_timings.jsonl
72+
if: always()
73+
uses: actions/upload-artifact@v6
74+
with:
75+
name: ${{ github.job }}-${{ github.run_attempt }}
76+
path: distros/jazzy/work/build_timings.jsonl
77+
if-no-files-found: ignore
78+
retention-days: 30
79+
permissions:
80+
id-token: write
81+
contents: read
82+
attestations: write
83+
stage_1_job_2:
84+
name: moveit-core
1385
runs-on: ubuntu-latest
14-
permissions: {}
86+
strategy:
87+
fail-fast: false
88+
needs:
89+
- stage_0_job_0
90+
- stage_0_job_1
1591
steps:
16-
- run: echo "Builds run from the buildbranch_<distro>_<platform> branches' own build.yaml."
92+
- name: Checkout code
93+
uses: actions/checkout@v7
94+
- name: Disable git auto-maintenance
95+
run: git config --global maintenance.auto false && git config --global gc.auto
96+
0
97+
- name: Setup pixi
98+
uses: prefix-dev/setup-pixi@v0.11.0
99+
with:
100+
pixi-version: v0.81.0
101+
cache: 'true'
102+
log-level: v
103+
frozen: 'true'
104+
- name: Build
105+
env:
106+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_JAZZY }}
107+
CURRENT_RECIPES: ros2-moveit-core ros-jazzy-moveit-core
108+
BUILD_TARGET: ''
109+
run: |
110+
export CI=github
111+
export GIT_BRANCH=${GITHUB_REF_NAME}
112+
export FEEDSTOCK_NAME=${GITHUB_REPOSITORY##*/}
113+
.scripts/build_unix.sh --target $BUILD_TARGET
114+
- name: Keep build_timings.jsonl
115+
if: always()
116+
uses: actions/upload-artifact@v6
117+
with:
118+
name: ${{ github.job }}-${{ github.run_attempt }}
119+
path: distros/jazzy/work/build_timings.jsonl
120+
if-no-files-found: ignore
121+
retention-days: 30
122+
permissions:
123+
id-token: write
124+
contents: read
125+
attestations: write
126+
stage_1_job_3:
127+
name: ros-gz-bridge gz-physics-vendor
128+
runs-on: ubuntu-latest
129+
strategy:
130+
fail-fast: false
131+
needs:
132+
- stage_0_job_0
133+
- stage_0_job_1
134+
steps:
135+
- name: Checkout code
136+
uses: actions/checkout@v7
137+
- name: Disable git auto-maintenance
138+
run: git config --global maintenance.auto false && git config --global gc.auto
139+
0
140+
- name: Setup pixi
141+
uses: prefix-dev/setup-pixi@v0.11.0
142+
with:
143+
pixi-version: v0.81.0
144+
cache: 'true'
145+
log-level: v
146+
frozen: 'true'
147+
- name: Build
148+
env:
149+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_JAZZY }}
150+
CURRENT_RECIPES: ros2-ros-gz-bridge ros-jazzy-ros-gz-bridge ros2-gz-physics-vendor
151+
ros-jazzy-gz-physics-vendor
152+
BUILD_TARGET: ''
153+
run: |
154+
export CI=github
155+
export GIT_BRANCH=${GITHUB_REF_NAME}
156+
export FEEDSTOCK_NAME=${GITHUB_REPOSITORY##*/}
157+
.scripts/build_unix.sh --target $BUILD_TARGET
158+
- name: Keep build_timings.jsonl
159+
if: always()
160+
uses: actions/upload-artifact@v6
161+
with:
162+
name: ${{ github.job }}-${{ github.run_attempt }}
163+
path: distros/jazzy/work/build_timings.jsonl
164+
if-no-files-found: ignore
165+
retention-days: 30
166+
permissions:
167+
id-token: write
168+
contents: read
169+
attestations: write
170+
stage_2_job_4:
171+
name: ros-gz-image
172+
runs-on: ubuntu-latest
173+
strategy:
174+
fail-fast: false
175+
needs:
176+
- stage_1_job_2
177+
- stage_1_job_3
178+
steps:
179+
- name: Checkout code
180+
uses: actions/checkout@v7
181+
- name: Disable git auto-maintenance
182+
run: git config --global maintenance.auto false && git config --global gc.auto
183+
0
184+
- name: Setup pixi
185+
uses: prefix-dev/setup-pixi@v0.11.0
186+
with:
187+
pixi-version: v0.81.0
188+
cache: 'true'
189+
log-level: v
190+
frozen: 'true'
191+
- name: Build
192+
env:
193+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN_JAZZY }}
194+
CURRENT_RECIPES: ros2-ros-gz-image ros-jazzy-ros-gz-image
195+
BUILD_TARGET: ''
196+
run: |
197+
export CI=github
198+
export GIT_BRANCH=${GITHUB_REF_NAME}
199+
export FEEDSTOCK_NAME=${GITHUB_REPOSITORY##*/}
200+
.scripts/build_unix.sh --target $BUILD_TARGET
201+
- name: Keep build_timings.jsonl
202+
if: always()
203+
uses: actions/upload-artifact@v6
204+
with:
205+
name: ${{ github.job }}-${{ github.run_attempt }}
206+
path: distros/jazzy/work/build_timings.jsonl
207+
if-no-files-found: ignore
208+
retention-days: 30
209+
permissions:
210+
id-token: write
211+
contents: read
212+
attestations: write
213+
name: build
214+
run-name: jazzy linux-64
215+
concurrency:
216+
group: build-jazzy-linux-64
217+
cancel-in-progress: true
218+
on:
219+
push:
220+
branches:
221+
- buildbranch_jazzy_linux_64
222+
env:
223+
ROBOSTACK_DISTRO: jazzy
224+
# optional repository variable: upload to this prefix.dev channel instead
225+
# (e.g. a test channel), or 'none' to only build
226+
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/jazzy/work/build_timings.json‎

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

‎distros/jazzy/work/buildorder.txt‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ros2-rclcpp
2+
ros2-gz-dartsim-vendor
3+
ros2-tf2-bullet
4+
ros2-pymoveit2
5+
ros2-ros-gz-bridge
6+
ros2-moveit-core
7+
ros2-gz-physics-vendor
8+
ros-jazzy-tf2-bullet
9+
ros-jazzy-rclcpp
10+
ros-jazzy-pymoveit2
11+
ros-jazzy-gz-dartsim-vendor
12+
ros2-ros-gz-image
13+
ros-jazzy-ros-gz-bridge
14+
ros-jazzy-moveit-core
15+
ros-jazzy-gz-physics-vendor
16+
ros-jazzy-ros-gz-image

0 commit comments

Comments
 (0)