Skip to content

Commit dbaff39

Browse files
committed
Add build files 2026-07-07-2045
1 parent 8e80ad8 commit dbaff39

6 files changed

Lines changed: 57773 additions & 0 deletions

File tree

.github/workflows/win.yml

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

buildorder.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ros-lyrical-twist-stamper
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
:: Generated by vinca http://github.com/RoboStack/vinca.
2+
:: DO NOT EDIT!
3+
setlocal
4+
5+
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"
6+
7+
pushd %SRC_DIR%\%PKG_NAME%\src\work\
8+
set "PKG_NAME_SHORT=%PKG_NAME:*ros-lyrical-=%"
9+
set "PKG_NAME_SHORT=%PKG_NAME_SHORT:-=_%"
10+
11+
:: If there is a setup.cfg that contains install-scripts then use pip to install
12+
findstr install[-_]scripts setup.cfg
13+
if "%errorlevel%" == "0" (
14+
%PYTHON% setup.py install --single-version-externally-managed --record=files.txt ^
15+
--prefix=%LIBRARY_PREFIX% ^
16+
--install-lib=%SP_DIR% ^
17+
--install-scripts=%LIBRARY_PREFIX%\lib\%PKG_NAME_SHORT%
18+
) else (
19+
%PYTHON% setup.py install --single-version-externally-managed --record=files.txt ^
20+
--prefix=%LIBRARY_PREFIX% ^
21+
--install-lib=%SP_DIR% ^
22+
--install-scripts=%LIBRARY_PREFIX%\bin
23+
)
24+
25+
if errorlevel 1 exit 1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by vinca http://github.com/RoboStack/vinca.
2+
# DO NOT EDIT!
3+
4+
set -eo pipefail
5+
6+
pushd $SRC_DIR/$PKG_NAME/src/work/
7+
8+
# If there is a setup.cfg that contains install-scripts then we should not set it here
9+
if [ -f setup.cfg ] && grep -q "install[-_]scripts" setup.cfg; then
10+
# Remove e.g. ros-humble- from PKG_NAME
11+
PKG_NAME_SHORT=${PKG_NAME#*ros-lyrical-}
12+
# Substitute "-" with "_"
13+
PKG_NAME_SHORT=${PKG_NAME_SHORT//-/_}
14+
INSTALL_SCRIPTS_ARG="--install-scripts=$PREFIX/lib/$PKG_NAME_SHORT"
15+
echo "WARNING: setup.cfg not set, will set INSTALL_SCRIPTS_ARG to: $INSTALL_SCRIPTS_ARG"
16+
$PYTHON setup.py install --prefix="$PREFIX" --install-lib="$SP_DIR" $INSTALL_SCRIPTS_ARG --single-version-externally-managed --record=files.txt
17+
else
18+
$PYTHON -m pip install . --no-deps -vvv
19+
fi
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros-lyrical-twist-stamper
5+
version: 0.0.5
6+
source:
7+
git: https://github.com/ros2-gbp/twist_stamper-release.git
8+
tag: release/lyrical/twist_stamper/0.0.5-3
9+
target_directory: ros-lyrical-twist-stamper/src/work
10+
11+
build:
12+
script: ${{ '$RECIPE_DIR/build_ament_python.sh' if unix or wasm32 else '%RECIPE_DIR%\\bld_ament_python.bat' }}
13+
number: 22
14+
post_process:
15+
- files:
16+
- '*.pc'
17+
regex: (?:-L|-I)?"?([^;\s]+/sysroot/)
18+
replacement: $$(CONDA_BUILD_SYSROOT_S)
19+
- files:
20+
- '*.cmake'
21+
regex: ([^;\s"]+/sysroot)
22+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
23+
- files:
24+
- '*.cmake'
25+
regex: ([^;\s"]+/MacOSX\d*\.?\d*\.sdk)
26+
replacement: $$ENV{CONDA_BUILD_SYSROOT}
27+
about:
28+
repository: https://github.com/joshnewans/twist_stamper
29+
license: Apache-2.0
30+
summary: ROS2 package for converting between Twist and TwistStamped messages
31+
extra:
32+
recipe-maintainers:
33+
- ros-forge
34+
35+
requirements:
36+
build:
37+
- ${{ compiler('cxx') }}
38+
- ${{ compiler('c') }}
39+
- if: target_platform!='emscripten-wasm32'
40+
then:
41+
- ${{ stdlib('c') }}
42+
- ninja
43+
- python
44+
- setuptools
45+
- git
46+
- git-lfs
47+
- if: unix
48+
then:
49+
- patch
50+
- make
51+
- coreutils
52+
- if: win
53+
then:
54+
- m2-patch
55+
- if: osx
56+
then:
57+
- tapi
58+
- if: build_platform != target_platform
59+
then:
60+
- pkg-config
61+
- cmake
62+
- cython
63+
- if: build_platform != target_platform
64+
then:
65+
- python
66+
- cross-python_${{ target_platform }}
67+
- numpy
68+
host:
69+
- if: build_platform == target_platform
70+
then:
71+
- pkg-config
72+
- numpy
73+
- pip
74+
- pytest
75+
- python
76+
- ros-lyrical-ament-copyright
77+
- ros-lyrical-ament-flake8
78+
- ros-lyrical-ament-pep257
79+
- ros-lyrical-ros-environment
80+
- ros-lyrical-ros-workspace
81+
- ros2-distro-mutex 0.18.* lyrical_*
82+
- setuptools
83+
run:
84+
- python
85+
- ros-lyrical-geometry-msgs
86+
- ros-lyrical-rclpy
87+
- ros-lyrical-ros-workspace
88+
- ros-lyrical-std-msgs
89+
- ros2-distro-mutex 0.18.* lyrical_*

0 commit comments

Comments
 (0)