Skip to content

Commit 0c84dd4

Browse files
committed
Add build files 2026-04-20-2206
1 parent 54894d8 commit 0c84dd4

6 files changed

Lines changed: 234 additions & 0 deletions

File tree

.github/workflows/win.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
jobs:
2+
stage_0_job_0:
3+
name: tf-transformations
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.4
16+
with:
17+
pixi-version: v0.63.2
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 robostack-kilted -c 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+
for %%F in ("%CONDA_BLD_PATH%\win-64\*.conda") do (
84+
echo Uploading %%F
85+
pixi run upload "%%F" --force
86+
if errorlevel 1 exit 1
87+
)
88+
) else (
89+
echo Warning: No .conda files found in %CONDA_BLD_PATH%\win-64
90+
echo This might be due to all the packages being skipped
91+
)
92+
env:
93+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
94+
CURRENT_RECIPES: ros-kilted-tf-transformations
95+
PYTHONUNBUFFERED: 1
96+
name: Build ros-kilted-tf-transformations
97+
name: build_win
98+
on:
99+
push:
100+
branches:
101+
- buildbranch_win

buildorder.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ros-kilted-tf-transformations
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-kilted-=%"
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-kilted-}
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: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
3+
package:
4+
name: ros-kilted-tf-transformations
5+
version: 1.1.1
6+
source:
7+
git: https://github.com/ros2-gbp/tf_transformations_release.git
8+
tag: release/kilted/tf_transformations/1.1.1-2
9+
target_directory: ros-kilted-tf-transformations/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: 18
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+
license: BSD-3-Clause
29+
summary: Reimplementation of the tf/transformations.py library for common Python spatial operations
30+
extra:
31+
recipe-maintainers:
32+
- ros-forge
33+
34+
requirements:
35+
build:
36+
- ${{ compiler('cxx') }}
37+
- ${{ compiler('c') }}
38+
- if: target_platform!='emscripten-wasm32'
39+
then:
40+
- ${{ stdlib('c') }}
41+
- ninja
42+
- python
43+
- setuptools
44+
- git
45+
- git-lfs
46+
- if: unix
47+
then:
48+
- patch
49+
- make
50+
- coreutils
51+
- if: win
52+
then:
53+
- m2-patch
54+
- if: osx
55+
then:
56+
- tapi
57+
- if: build_platform != target_platform
58+
then:
59+
- pkg-config
60+
- cmake
61+
- cython
62+
- if: build_platform != target_platform
63+
then:
64+
- python
65+
- cross-python_${{ target_platform }}
66+
- numpy
67+
host:
68+
- if: build_platform == target_platform
69+
then:
70+
- pkg-config
71+
- numpy
72+
- pip
73+
- pytest
74+
- python
75+
- ros-kilted-ament-flake8
76+
- ros-kilted-ament-pep257
77+
- ros-kilted-ros-environment
78+
- ros-kilted-ros-workspace
79+
- ros2-distro-mutex 0.14.* kilted_*
80+
- setuptools
81+
- transforms3d
82+
run:
83+
- numpy
84+
- python
85+
- ros-kilted-ros-workspace
86+
- ros2-distro-mutex 0.14.* kilted_*
87+
- transforms3d

vinca_c19d860f47.json

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

0 commit comments

Comments
 (0)