Skip to content

Commit dcc12d3

Browse files
committed
Add build files 2025-10-31-2201
1 parent d8a0f3a commit dcc12d3

4 files changed

Lines changed: 161 additions & 0 deletions

File tree

.github/workflows/win.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
jobs:
2+
stage_0_job_0:
3+
name: librealsense2
4+
runs-on: windows-2022
5+
strategy:
6+
fail-fast: false
7+
needs: []
8+
env:
9+
CONDA_BLD_PATH: C:\\bld\\
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
- name: Setup pixi
14+
uses: prefix-dev/[email protected]
15+
with:
16+
pixi-version: v0.40.3
17+
cache: 'true'
18+
- uses: egor-tensin/cleanup-path@v4
19+
with:
20+
dirs: C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program
21+
Files\Git\mingw64\bin
22+
- shell: cmd
23+
run: |
24+
set "CI=true"
25+
26+
:: 4 cores available on GHA: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
27+
:: CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
28+
set CPU_COUNT=4
29+
30+
set PYTHONUNBUFFERED=1
31+
32+
call setup_x64
33+
34+
:: Set the conda-build working directory to a smaller path
35+
if "%CONDA_BLD_PATH%" == "" (
36+
set "CONDA_BLD_PATH=C:\\bld\\"
37+
)
38+
39+
:: On azure, there are libcrypto*.dll & libssl*.dll under
40+
:: C:\\Windows\\System32, which should not be there (no vendor dlls in windows folder).
41+
:: They would be found before the openssl libs of the conda environment, so we delete them.
42+
if defined CI (
43+
DEL C:\\Windows\\System32\\libcrypto-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libcrypto-1_1-x64.dll)
44+
DEL C:\\Windows\\System32\\libssl-1_1-x64.dll || (Echo Ignoring failure to delete C:\\Windows\\System32\\libssl-1_1-x64.dll)
45+
)
46+
47+
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage
48+
set "PATH=%PATH:ostedtoolcache=%"
49+
name: conda-forge build setup
50+
- shell: cmd
51+
run: |
52+
setlocal EnableExtensions EnableDelayedExpansion
53+
54+
set CONDA_BLD_PATH=C:\bld
55+
echo "PATH is %PATH%"
56+
57+
rmdir /Q/S C:\Strawberry\
58+
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\"
59+
60+
set "FEEDSTOCK_ROOT=%cd%"
61+
62+
mkdir %CONDA_BLD_PATH%
63+
64+
:: Enable long path names on Windows
65+
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
66+
67+
for %%X in (%CURRENT_RECIPES%) do (
68+
echo "BUILDING RECIPE %%X"
69+
cd %FEEDSTOCK_ROOT%\recipes\%%X\
70+
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
71+
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
72+
-c conda-forge -c robostack-staging ^
73+
--output-dir %CONDA_BLD_PATH%
74+
75+
if errorlevel 1 exit 1
76+
rem -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml
77+
)
78+
79+
:: Check if .conda files exist in the win-64 directory
80+
dir /b "%CONDA_BLD_PATH%\win-64\*.conda" >nul 2>&1
81+
if errorlevel 1 (
82+
:: No files found, display warning
83+
echo Warning: No .conda files found in %CONDA_BLD_PATH%\win-64
84+
echo This might be due to all the packages being skipped
85+
) else (
86+
:: Files found, run the upload command
87+
pixi run upload "%CONDA_BLD_PATH%\win-64\*.conda" --force
88+
if errorlevel 1 exit 1
89+
)
90+
env:
91+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
92+
CURRENT_RECIPES: ros-humble-librealsense2
93+
PYTHONUNBUFFERED: 1
94+
name: Build ros-humble-librealsense2
95+
name: build_win
96+
on:
97+
push:
98+
branches:
99+
- buildbranch_win

buildorder.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ros-humble-librealsense2
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros-humble-librealsense2
5+
version: 2.55.1
6+
7+
build:
8+
number: 13
9+
script: ''
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+
homepage: https://github.com/IntelRealSense/librealsense/
25+
license: Apache-2.0
26+
summary: Library for controlling and capturing data from the Intel(R) RealSense(TM) D400 devices.
27+
extra:
28+
recipe-maintainers:
29+
- ros-forge
30+
31+
requirements:
32+
build:
33+
- if: build_platform != target_platform
34+
then:
35+
- git
36+
host:
37+
- glfw 3.*
38+
- libusb
39+
- openssl
40+
- pkg-config
41+
- python
42+
- ros-humble-ros-environment
43+
- ros-humble-ros-workspace
44+
- ros2-distro-mutex 0.7.* humble_*
45+
- xorg-libx11
46+
- xorg-xorgproto
47+
- if: build_platform == target_platform
48+
then:
49+
- git
50+
run:
51+
- glfw
52+
- librealsense >=2.55.1, <2.56.0a0
53+
- python
54+
- ros-humble-ros-workspace
55+
- ros2-distro-mutex 0.7.* humble_*
56+
- xorg-libx11
57+
- xorg-xorgproto
58+
- if: osx and x86_64
59+
then:
60+
- __osx >=${{ MACOSX_DEPLOYMENT_TARGET|default('10.14') }}

vinca_dc5829efc8.json

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

0 commit comments

Comments
 (0)