Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to actually use rosdistro_snapshot.yaml files, update to new rattler-build and add twist_mux #250

Merged
merged 6 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/testpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,6 @@ jobs:
# git in C:\Program Files\Git\bin is used by pip install git+
dirs: 'C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin'

# - shell: bash -l {0}
# if: matrix.platform == 'linux-aarch64'
# run: |
# echo "::group::Configure binfmt_misc"
# docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
# export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
# export GIT_BRANCH="$(basename $GITHUB_REF)"
# echo "::endgroup::"

- name: Install libgl1-mesa-dev (only for linux-aarch64)
if: matrix.platform == 'linux-aarch64'
shell: bash -l {0}
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxi-dev libxmu-dev

# For some reason, the Strawberry perl's pkg-config is found
# instead of the conda's one, so let's delete the /c/Strawberry directory
# Furthermore, we also need to remove an older SDK that is used and can result in compilation problems
Expand Down
40 changes: 24 additions & 16 deletions conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,35 @@ spdlog:
pugixml:
- '1.14'

cdt_name:
- ${{ "cos7" if linux }}
cdt_name: # [linux]
- conda # [linux]

python:
- 3.11.* *_cpython
python_impl:
- cpython

c_stdlib:
- ${{ "sysroot" if linux }}
- ${{ "macosx_deployment_target" if osx }}
- ${{ "vs" if win }}
c_stdlib_version:
- ${{ "2.17" if linux }}
- ${{ "10.14" if osx and x86_64 }}
- ${{ "11.0" if osx and arm64 }}
c_compiler:
- ${{ "gcc" if linux }}
- ${{ "clang" if osx }}
- ${{ "vs2019" if win }}
- gcc # [linux]
- clang # [osx]
- vs2019 # [win and x86_64]
- vs2022 # [win and arm64]
c_compiler_version: # [unix]
- 13 # [linux]
- 18 # [osx]
c_stdlib:
- sysroot # [linux]
- macosx_deployment_target # [osx]
- vs # [win]
c_stdlib_version: # [unix]
- 2.17 # [linux]
- 10.13 # [osx and x86_64]
- 11.0 # [osx and arm64]
cxx_compiler:
- ${{ "gxx" if linux }}
- ${{ "clangxx" if osx }}
- ${{ "vs2019" if win }}
- gxx # [linux]
- clangxx # [osx]
- vs2019 # [win and x86_64]
- vs2022 # [win and arm64]
cxx_compiler_version: # [unix]
- 13 # [linux]
- 18 # [osx]
12 changes: 6 additions & 6 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ upload = "anaconda -t $ANACONDA_API_TOKEN upload"

[dependencies]
python = ">=3.11.0,<3.12"
rattler-build = ">=0.33.2"
rattler-build = ">=0.35.5"
anaconda-client = ">=1.12"

[target.win-64.dependencies]
Expand All @@ -27,14 +27,14 @@ git = "*"

[feature.beta.pypi-dependencies]
# This is tipically the latest commit on main branch
vinca = { git = "https://github.com/RoboStack/vinca.git", rev = "a081fad2b1d72cfa4c3cc30010dae024ade79d0c" }
vinca = { git = "https://github.com/RoboStack/vinca.git", rev = "cbb8eba834ce3834df552977d6b08c325a30768e" }
# Uncomment this line to work with a local vinca for faster iteration, but remember to comment it back
# (and regenerate the pixi.lock) once you push the modified commit to the repo
#vinca = { path = "../vinca", editable = true }

[feature.beta.tasks]
generate-recipes = { cmd = "vinca -m", depends-on = ["rename-file"] }
remove-file = { cmd = "rm vinca.yaml; rm -rf recipes" }
remove-file = { cmd = "rm vinca.yaml; rm -rf recipes; mkdir recipes" }
build_additional_recipes = { cmd = "rattler-build build --recipe-dir ./additional_recipes -m ./conda_build_config.yaml -c robostack-staging -c https://repo.prefix.dev/conda-forge --skip-existing" }
build = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c robostack-staging -c https://repo.prefix.dev/conda-forge --skip-existing", depends-on = ["build_additional_recipes", "generate-recipes"] }
build_one_package = { cmd = "cp ./patch/$PACKAGE.*patch ./recipes/$PACKAGE/patch/; rattler-build build --recipe ./recipes/$PACKAGE/recipe.yaml -m ./conda_build_config.yaml -c robostack-staging -c https://repo.prefix.dev/conda-forge", env = { PACKAGE = "ros-humble-ros-workspace" } }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Generated by vinca-snapshot on 2025-01-10-12-52-27 for distro humble
aandd_ekew_driver_py:
tag: release/humble/aandd_ekew_driver_py/0.0.2-3
url: https://github.com/ros2-gbp/aandd_ekew_driver_py-release.git
Expand Down
4 changes: 4 additions & 0 deletions vinca_linux_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ packages_select_by_deps:

- lanelet2

# requested in https://github.com/RoboStack/ros-humble/issues/249
- twist_mux

# ----- end of package support -----

# - rtabmap
Expand Down Expand Up @@ -547,3 +550,4 @@ packages_select_by_deps:
# - osrf_testing_tools_cpp

patch_dir: patch
rosdistro_snapshot: rosdistro_snapshot.yaml
4 changes: 3 additions & 1 deletion vinca_linux_aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ packages_select_by_deps:

- lanelet2

# requested in https://github.com/RoboStack/ros-humble/issues/249
- twist_mux

# Used to work, now needs fixes
# - rtabmap
Expand Down Expand Up @@ -405,4 +407,4 @@ packages_select_by_deps:
# - osrf_testing_tools_cpp

patch_dir: patch

rosdistro_snapshot: rosdistro_snapshot.yaml
4 changes: 4 additions & 0 deletions vinca_osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,8 @@ packages_select_by_deps:

- lanelet2

# requested in https://github.com/RoboStack/ros-humble/issues/249
- twist_mux

patch_dir: patch
rosdistro_snapshot: rosdistro_snapshot.yaml
7 changes: 5 additions & 2 deletions vinca_osx_arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ packages_select_by_deps:

# requested in https://github.com/RoboStack/ros-humble/pull/205
- rosbag2_storage_mcap

# Universal Robots, requested in https://github.com/RoboStack/ros-humble/issues/234, https://github.com/RoboStack/ros-humble/issues/227 and https://github.com/RoboStack/ros-humble/issues/222
- ur

- lanelet2
- lanelet2

# requested in https://github.com/RoboStack/ros-humble/issues/249
- twist_mux

patch_dir: patch
rosdistro_snapshot: rosdistro_snapshot.yaml
4 changes: 4 additions & 0 deletions vinca_win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,8 @@ packages_select_by_deps:

- lanelet2

# requested in https://github.com/RoboStack/ros-humble/issues/249
- twist_mux

patch_dir: patch
rosdistro_snapshot: rosdistro_snapshot.yaml
Loading