Skip to content

Commit 2507b86

Browse files
Merge pull request #5 from oursland/osx-ci
Christmas 2024 rebuild
2 parents bf970b9 + 53604c9 commit 2507b86

File tree

78 files changed

+5463
-7138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+5463
-7138
lines changed

.ci_support/conda_forge_pinnings.yaml

Lines changed: 275 additions & 189 deletions
Large diffs are not rendered by default.

.github/testpr_environment.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
2121
- name: Install vinca
2222
run: |
23-
pip install git+https://github.com/RoboStack/vinca.git@rattler-build
23+
pip install git+https://github.com/RoboStack/vinca.git@rattler-build-humble
2424
2525
- name: Generate recipes for linux-64
2626
run: |

.github/workflows/testpr.yml

Lines changed: 44 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, macos-14, windows-2019]
1616
platform: [linux-64, linux-aarch64, osx-64, win-64, osx-arm64]
17+
environment: [beta]
1718
exclude:
1819
- os: ubuntu-latest
1920
platform: win-64
@@ -46,25 +47,25 @@ jobs:
4647
- os: windows-2019
4748
platform: osx-arm64
4849
steps:
50+
- uses: actions/checkout@v4
51+
with:
52+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
53+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
54+
55+
- uses: prefix-dev/[email protected]
56+
with:
57+
environments: ${{ matrix.environment }}
58+
frozen: true
59+
4960
# Workaround for https://github.com/RoboStack/ros-humble/pull/141#issuecomment-1941919816
5061
- name: Clean up PATH
5162
if: contains(matrix.os, 'windows')
5263
uses: egor-tensin/cleanup-path@v4
5364
with:
5465
# cygpath in C:\Program Files\Git\usr\bin is used by install micromamba
55-
# git in C:\Program Files\Git\bin is used by pip install git+
66+
# git in C:\Program Files\Git\bin is used by pip install git+
5667
dirs: 'C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin'
5768

58-
- uses: actions/checkout@master
59-
- name: install micromamba
60-
uses: mamba-org/setup-micromamba@main
61-
with:
62-
environment-file: .github/testpr_environment.yml
63-
condarc: |
64-
channels:
65-
- robostack-staging
66-
- conda-forge
67-
6869
- shell: bash -l {0}
6970
if: matrix.platform == 'linux-aarch64'
7071
run: |
@@ -81,24 +82,15 @@ jobs:
8182
sudo apt-get update
8283
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxi-dev libxmu-dev
8384
84-
- shell: bash -l {0}
85-
run: |
86-
conda config --show channels | grep defaults && conda config --remove channels defaults
87-
conda info
88-
conda config --show
89-
micromamba install -y pip rospkg networkx "catkin_pkg>=0.4.16" "ruamel.yaml>=0.16.6" "rosdistro>=0.8.0" "empy>=3.3.4" boa
90-
- name: install vinca
91-
shell: bash -l {0}
92-
run: |
93-
# use no-deps for now, otherwise problems with ruamel.
94-
pip install git+https://github.com/RoboStack/vinca.git --no-deps
9585
# For some reason, the Strawberry perl's pkg-config is found
9686
# instead of the conda's one, so let's delete the /c/Strawberry directory
87+
# Furthermore, we also need to remove an older SDK that is used and can result in compilation problems
9788
- name: Debug pkg-config problem
9889
if: contains(matrix.os, 'windows')
9990
shell: bash -l {0}
10091
run: |
10192
rm -rf /c/Strawberry
93+
rm -rf "/c/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/"
10294
10395
- name: Check what files have changed
10496
id: filecheck
@@ -121,82 +113,80 @@ jobs:
121113
shell: bash -l {0}
122114
if: steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
123115
run: |
124-
git clean -fdx
125116
cp vinca_linux_64.yaml vinca.yaml
126-
vinca --platform linux-64
127-
ls
128-
cat recipe.yaml
117+
mkdir -p recipes
118+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m -n
119+
ls -la recipes
129120
- name: Generate recipes for linux-aarch64
130121
shell: bash -l {0}
131122
if: steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
132123
run: |
133-
git clean -fdx
134124
cp vinca_linux_aarch64.yaml vinca.yaml
135-
vinca --platform linux-aarch64
136-
ls
137-
cat recipe.yaml
125+
mkdir -p recipes
126+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64 -m -n
127+
ls -la recipes
138128
- name: Generate recipes for osx-64
139129
shell: bash -l {0}
140130
if: steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
141131
run: |
142-
git clean -fdx
143132
cp vinca_osx.yaml vinca.yaml
144-
vinca --platform osx-64
145-
ls
146-
cat recipe.yaml
133+
mkdir -p recipes
134+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64 -m -n
135+
ls -la recipes
147136
- name: Generate recipes for osx-arm64
148137
shell: bash -l {0}
149138
if: steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
150139
run: |
151-
git clean -fdx
152140
cp vinca_osx_arm64.yaml vinca.yaml
153-
vinca --platform osx-arm64
154-
ls
155-
cat recipe.yaml
141+
mkdir -p recipes
142+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m -n
143+
ls -la recipes
156144
- name: Generate recipes for win-64
157145
shell: bash -l {0}
158146
if: steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
159147
run: |
160-
git clean -fdx
148+
# Workaround for problem related to long paths
149+
echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
150+
mkdir /c/bld
161151
cp vinca_win.yaml vinca.yaml
162-
vinca --platform win-64
163-
ls
164-
cat recipe.yaml
152+
mkdir -p recipes
153+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform win-64 -m -n
154+
ls -la recipes
165155
- name: Check if there are packages to be built
166156
id: newrecipecheck
167157
shell: bash -l {0}
168158
run: |
169159
# continue on error
170160
set +e
171-
grep -q "outputs: \[\]" recipe.yaml > /dev/null
161+
test ! -d recipes
172162
echo "::set-output name=RECIPE_CREATED::${?}"
173163
- name: Build recipes for linux-64
174164
shell: bash -l {0}
175-
run: |
176-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
177-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
178165
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
166+
run: |
167+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
168+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
179169
- name: Build recipes for linux-aarch64
180170
shell: bash -l {0}
181171
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
182172
run: |
183-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=linux-aarch64
184-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=linux-aarch64
173+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
174+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
185175
- name: Build recipes for osx-64
186176
shell: bash -l {0}
187177
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
188178
run: |
189-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
190-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
179+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
180+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
191181
- name: Build recipes for osx-arm64
192182
shell: bash -l {0}
193183
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
194184
run: |
195-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=osx-arm64
196-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
185+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
186+
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
197187
- name: Build recipes for win-64
198188
shell: bash -l {0}
199189
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
200190
run: |
201-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
202-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
191+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
192+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ recipes/
88
# pixi environments
99
.pixi
1010
*.egg-info
11+
output/

.scripts/build_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pwd
2020
cd ${FEEDSTOCK_ROOT}
2121

2222
for recipe in ${CURRENT_RECIPES[@]}; do
23-
pixi run rattler-build build \
23+
pixi run -v rattler-build build \
2424
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
2525
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
2626
-c robostack-jazzy -c conda-forge \

.scripts/build_osx.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ export "CONDA_BLD_PATH=$HOME/conda-bld/"
99
curl -fsSL https://pixi.sh/install.sh | bash
1010
export PATH="$HOME/.pixi/bin:$PATH"
1111

12+
# Remove homebrew from $PATH
13+
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')
14+
1215
for recipe in ${CURRENT_RECIPES[@]}; do
13-
pixi run rattler-build build \
16+
pixi run -v rattler-build build \
1417
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
1518
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
1619
-c robostack-jazzy -c conda-forge \
@@ -19,4 +22,4 @@ for recipe in ${CURRENT_RECIPES[@]}; do
1922
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
2023
done
2124

22-
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force
25+
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force

.scripts/build_osx_arm64.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ export "CONDA_BLD_PATH=$HOME/conda-bld/"
99
curl -fsSL https://pixi.sh/install.sh | bash
1010
export PATH="$HOME/.pixi/bin:$PATH"
1111

12+
# Remove homebrew from $PATH
13+
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')
14+
1215
for recipe in ${CURRENT_RECIPES[@]}; do
13-
pixi run rattler-build build \
16+
pixi run -v rattler-build build \
1417
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
1518
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
1619
-c robostack-jazzy -c conda-forge \
17-
--output-dir $CONDA_BLD_PATH \
18-
--target-platform=osx-arm64
20+
--output-dir $CONDA_BLD_PATH
1921

2022
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
2123
done
2224

23-
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force
25+
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force

.scripts/build_win.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t
1616
for %%X in (%CURRENT_RECIPES%) do (
1717
echo "BUILDING RECIPE %%X"
1818
cd %FEEDSTOCK_ROOT%\recipes\%%X\
19-
pixi run rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
19+
pixi run -v rattler-build build --recipe %FEEDSTOCK_ROOT%\recipes\%%X\ ^
2020
-m %FEEDSTOCK_ROOT%\conda_build_config.yaml ^
2121
-c robostack-jazzy -c conda-forge ^
2222
--output-dir %CONDA_BLD_PATH%

additional_recipes/ros-humble-octomap/recipe.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)