Skip to content

Commit f62de34

Browse files
Merge pull request #393 from RoboStack/apriltag-unvendor
unvendor apriltag
2 parents 82b1352 + 31d7fdd commit f62de34

6 files changed

Lines changed: 53 additions & 19 deletions

File tree

.github/workflows/testpr.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ jobs:
9393
- name: Check patches
9494
shell: bash -l {0}
9595
run: |
96-
pixi run check-patches
96+
if [ "${{ matrix.platform }}" = "emscripten-wasm32" ]; then
97+
pixi run check-patches-emscripten
98+
else
99+
pixi run check-patches
100+
fi
97101
98102
- name: Restore build cache
99103
id: cache-restore
@@ -124,20 +128,17 @@ jobs:
124128
run: |
125129
ls ${{ matrix.folder_cache }} || true
126130
127-
- name: Build recipes [non emscripten]
131+
- name: Build recipes
128132
shell: bash -l {0}
129-
if: matrix.platform != 'emscripten-wasm32'
130133
run: |
131134
if [ "${{ runner.os }}" = "Windows" ]; then
132135
export VINCA_CUSTOM_CMAKE_BUILD_DIR='C:\x\'
133136
fi
134-
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --skip-existing
135-
136-
- name: Build recipes [emscripten]
137-
shell: bash -l {0}
138-
if: matrix.platform == 'emscripten-wasm32'
139-
run: |
140-
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c https://repo.mamba.pm/emscripten-forge/ -c conda-forge -c robostack-staging --skip-existing --test skip
137+
if [ "${{ matrix.platform }}" = "emscripten-wasm32" ]; then
138+
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c https://repo.mamba.pm/emscripten-forge/ -c conda-forge -c robostack-staging --skip-existing --test skip
139+
else
140+
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --skip-existing
141+
fi
141142
142143
- name: See packages that will be saved in cache
143144
shell: bash -l {0}

conda_build_config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,6 @@ libzenohcxx:
8282

8383
libhwloc:
8484
- 2.12.2
85+
86+
eigen_abi_devel:
87+
- '3.4.0'

pixi.toml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,29 @@ vinca = { git = "https://github.com/RoboStack/vinca.git", rev = "86e2ac4935d39b3
3030
#vinca = { path = "../vinca", editable = true }
3131

3232
[tasks]
33-
upload = "rattler-build upload anaconda -o robostack-staging -a $ANACONDA_API_TOKEN"
3433
generate-recipes = { cmd = "vinca -m", depends-on = ["remove-recipes"] }
34+
generate-gha-workflows = { cmd = "vinca-gha --trigger-branch dummy_build_branch_as_it_is_unused -d ./recipes", depends-on = ["generate-recipes"] }
3535
check-patches = { cmd = "python check_patches_clean_apply.py", depends-on = ["generate-recipes"] }
36+
create_snapshot = { cmd = "vinca-snapshot -d humble -o rosdistro_snapshot.yaml" }
37+
upload = "rattler-build upload anaconda -o robostack-staging -a $ANACONDA_API_TOKEN"
38+
build_continue_on_failure = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --continue-on-failure --skip-existing", depends-on = ["generate-recipes"] }
39+
3640
generate-recipes-emscripten = { cmd = "vinca -m --platform emscripten-wasm32", depends-on = ["remove-recipes"] }
3741
check-patches-emscripten = { cmd = "python check_patches_clean_apply.py", depends-on = ["generate-recipes-emscripten"] }
38-
remove-recipes = { cmd = "rm -rf recipes_only_patch; rm -rf recipes; mkdir recipes" }
39-
generate-gha-workflows = { cmd = "vinca-gha --trigger-branch dummy_build_branch_as_it_is_unused -d ./recipes", depends-on = ["generate-recipes"] }
40-
build_continue_on_failure = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --continue-on-failure --skip-existing", depends-on = ["generate-recipes"] }
41-
build = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging --skip-existing", depends-on = ["generate-recipes"] }
42-
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 https://repo.prefix.dev/conda-forge -c robostack-staging", env = { PACKAGE = "ros-humble-ros-workspace" } }
43-
create_snapshot = { cmd = "vinca-snapshot -d humble -o rosdistro_snapshot.yaml" }
4442

43+
[tasks.build]
44+
cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging --skip-existing"
45+
depends-on = ["generate-recipes"]
46+
description = "Build all packages, from the ./recipes dir. This will skip already existing packages, so it can be used to build only a subset of packages by first removing the recipes of the packages you want to rebuild (see `pixi remove-recipes`)."
47+
48+
[tasks.remove-recipes]
49+
cmd = "rm -rf recipes_only_patch; rm -rf recipes; mkdir recipes"
50+
description = "Remove all generated recipes, before regenerating them."
51+
52+
[tasks.build-one]
53+
cmd = "cp ./patch/{{ PACKAGE }}.*patch ./recipes/{{ PACKAGE }}/patch/; rattler-build build --recipe ./recipes/{{ PACKAGE }}/recipe.yaml -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging"
54+
args = [{ arg = "PACKAGE", default = "ros-humble-ros-workspace" }]
55+
description = "Build a single package, from the ./recipes dir. Add the `ros-humble-` prefix to the package name, e.g. `pixi build-one --package ros-humble-ros-workspace`"
4556

4657
[tasks.build-emscripten]
4758
cmd = [

pkg_additional_info.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,22 @@ proxsuite:
157157
dep_name: proxsuite
158158
max_pin: 'x.x'
159159
override_version: '0.7.2'
160+
161+
# remember on next rebuild to remove build number override
162+
apriltag:
163+
build_number: 16
164+
generate_dummy_package_with_run_deps:
165+
dep_name: apriltag
166+
max_pin: 'x.x.x'
167+
apriltag_ros:
168+
build_number: 16
169+
apriltag_draw:
170+
build_number: 16
171+
apriltag_tools:
172+
build_number: 16
173+
apriltag_detector_umich:
174+
build_number: 16
175+
apriltag_detector_mit:
176+
build_number: 16
177+
apriltag_detector:
178+
build_number: 16

robostack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ doxygen:
8181
draco:
8282
robostack: [draco]
8383
eigen:
84-
robostack: [eigen]
84+
robostack: [eigen, eigen-abi-devel]
8585
emacs:
8686
robostack: [emacs]
8787
festival:

vinca.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ conda_index:
55
- robostack.yaml
66
- packages-ignore.yaml
77

8-
# Reminder for next full rebuild, the next build number should be 16
8+
# Reminder for next full rebuild, the next build number should be 17
99
build_number: 15
1010

1111
mutex_package:

0 commit comments

Comments
 (0)