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

Rebuild January 2025 - switch to rattler-build #229

Open
wants to merge 110 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
dbb99f9
build 7 - ros_core - linux_64
sonelu Aug 26, 2024
7593258
build 7 - ros_base - linux_64
sonelu Aug 26, 2024
f596530
build 7 - perception - linux_64
sonelu Aug 26, 2024
734b28a
cleanup of duplicate packages in the description of ros_core, ros_bas…
sonelu Aug 26, 2024
a6a5412
build 7 - simulation - linux_64
sonelu Aug 27, 2024
a64192b
build 7 - desktop - linux_64
sonelu Aug 27, 2024
b446058
build 7 - desktop_full - linux_64
sonelu Aug 27, 2024
bd6755d
all packs above --- end of package support ---
sonelu Sep 1, 2024
6055eb1
Sync with conda-forge pinnings
Tobias-Fischer Sep 18, 2024
83ce4cc
Sync with conda-forge pinnings
Tobias-Fischer Sep 18, 2024
90bb656
Bump version, fix string
Tobias-Fischer Sep 18, 2024
d83318e
Bump mutex
Tobias-Fischer Sep 18, 2024
eb89cd1
Cleanup
Tobias-Fischer Sep 18, 2024
aa6f3e0
Try fix mutex package not found
Tobias-Fischer Sep 18, 2024
41d1430
Try fix
Tobias-Fischer Sep 18, 2024
d64ae82
Fix?
Tobias-Fischer Sep 18, 2024
5e12c1e
Update testpr.yml
Tobias-Fischer Sep 18, 2024
04d0664
Test
Tobias-Fischer Sep 18, 2024
9c8ee17
Try fix
Tobias-Fischer Sep 18, 2024
b3c6d63
Try fix
Tobias-Fischer Sep 18, 2024
c07eda1
Fixup
Tobias-Fischer Sep 18, 2024
ab2582c
cleanup comments
sonelu Sep 18, 2024
a5073b4
cleanup comments
sonelu Sep 18, 2024
352119d
Fix backward_ros patch
traversaro Nov 28, 2024
4e59004
Delete patch/ros-humble-moveit-core.patch
traversaro Nov 28, 2024
3a8ee6c
Delete patch/ros-humble-moveit-resources-prbt-ikfast-manipulator-plug…
traversaro Nov 28, 2024
0742b27
Delete patch/ros-humble-moveit-simple-controller-manager.patch
traversaro Nov 28, 2024
6dfd619
Explicitly add ros_workspace to packages_select_by_deps as for some r…
traversaro Dec 17, 2024
f32a8cb
Update conda_build_config.yaml
traversaro Dec 17, 2024
cab2e61
Initial attempt to switch to rattler-build
traversaro Dec 17, 2024
c37f0ae
merge latest changes in sonelu's linux-64 branches
traversaro Dec 17, 2024
1eb787c
Use commit hash for vinca version
traversaro Dec 17, 2024
26f955f
Fix compatibility with latest rattler-build
traversaro Dec 17, 2024
4c0a3b2
Fix compatibility with rattler-build
traversaro Dec 18, 2024
3fcb6fd
Fix for rattler-build 0.32
traversaro Dec 18, 2024
7bb5dfb
Bump vinca version for rattler-build 0.32 support
traversaro Dec 18, 2024
164a49d
Remove patches that assume that PYTHON_INSTALL_DIR is an absolute path
traversaro Feb 10, 2024
8560574
Remove conflict leftover
traversaro Dec 18, 2024
4509e27
Refresh additional recipes and add geometric-shapes patch
traversaro Dec 18, 2024
87b901e
Add missing xorg-xorgproto package on libx11 dependency
traversaro Dec 18, 2024
7a02cd5
Backport PR 699 to ros-humble-slam-toolbox.patch
traversaro Dec 19, 2024
dbc6993
Update to rattler-build 0.33
traversaro Dec 19, 2024
915507b
Pin to modern libprotobuf version
traversaro Dec 19, 2024
06b1968
More rattler-build 0.33 fixes
traversaro Dec 19, 2024
cb8e3bf
Modern protobuf fix
traversaro Dec 19, 2024
038087a
Pin spdlog version
traversaro Dec 19, 2024
9ff3c89
fix typo
traversaro Dec 19, 2024
29fcde2
Update ros-humble-cartographer-ros.patch
traversaro Dec 19, 2024
f611fcd
Fix cartographer ros failure with glog 0.7.0
traversaro Dec 19, 2024
c400de2
Do not use cdt for OpenGL
traversaro Dec 19, 2024
1127826
Add missing rapidjson-dev rosdep key to robostack.yaml
traversaro Dec 19, 2024
357ebb4
Add missing devel dependenies to pcl-dev rosdep key
traversaro Dec 19, 2024
c50a699
Create ros-humble-moveit-ros-benchmarks.patch
Tobias-Fischer Dec 20, 2024
7d07903
Update patch
traversaro Dec 20, 2024
832d69a
Add missing xorg-xorgproto dependencies to libspnav-dev
traversaro Dec 21, 2024
bb7090d
incorporate changes from https://github.com/RoboStack/ros-humble/pull…
Tobias-Fischer Dec 22, 2024
9a83eba
Add x-compile fixes from https://github.com/RoboStack/ros-humble/pull…
Tobias-Fischer Dec 22, 2024
1511e12
Add initial tests
traversaro Dec 22, 2024
0927005
Avoid cmp0094 problems in webots-ros2-driver
traversaro Dec 22, 2024
7055749
Update ros-humble-fastrtps.patch
traversaro Dec 22, 2024
05d3500
Remove typo in testpr.yml
traversaro Dec 24, 2024
df2047a
Add new requested packages
traversaro Dec 24, 2024
891cd91
ignore .pixi and rattler-build output
Tobias-Fischer Dec 25, 2024
8b0b0ba
Add missing dep on patch for rviz_ogre_vendor
Tobias-Fischer Dec 25, 2024
8fd71ad
Update/remove realtime-tools patches
Tobias-Fischer Dec 25, 2024
1ea6e5f
Fixup logic in pixi.toml, make it multi-platform capable
Tobias-Fischer Dec 25, 2024
309da6a
Undo latest commit on moveit-core which does not work on osx
Tobias-Fischer Dec 25, 2024
b624545
Fix sysroot and basic_string issues on osx for rviz-ogre-vendor
Tobias-Fischer Dec 25, 2024
6e86551
Bump osx-arm64 version
Tobias-Fischer Dec 25, 2024
46e67a7
Bump osx-64 and linux-aarch64
Tobias-Fischer Dec 25, 2024
52d81ca
Add untested cross-compile patch for linux-aarch64
Tobias-Fischer Dec 25, 2024
002dfc9
Add missing patch for osx
Tobias-Fischer Dec 25, 2024
fb02c68
Complete local osx-arm64 build
Tobias-Fischer Dec 27, 2024
137738f
Sync with jazzy
Tobias-Fischer Dec 27, 2024
0177b20
Update vinca commit
traversaro Dec 27, 2024
9f626e8
Rebuild also Windows
traversaro Dec 27, 2024
b5af065
Add git dependency on linux
traversaro Dec 27, 2024
9536f09
Update testpr.yml
traversaro Dec 27, 2024
6068648
Update testpr.yml
traversaro Dec 27, 2024
4e1151f
Fix windows build and add tests
traversaro Dec 27, 2024
12eca98
Bump vinca version
traversaro Dec 27, 2024
5bd2e5a
Update testpr.yml
traversaro Dec 29, 2024
4cfed36
Fix iceoryx relocatability issues and long path issues
traversaro Dec 30, 2024
c371df4
Update ros-humble-controller-interface.win.patch
Tobias-Fischer Dec 31, 2024
47d432d
Add early failure if backward-ros CMake config files have problems
traversaro Jan 1, 2025
6b02d8e
Fix build of backward-ros on Windows
traversaro Jan 1, 2025
6792f61
Add python rcutils test
traversaro Jan 1, 2025
1b65fdc
Add moveit_visual_tools to all platforms
traversaro Jan 1, 2025
c63da3d
Add ament_cmake_vendor_package on all platforms
traversaro Jan 2, 2025
b715e80
Add rosbag2_storage_mcap on all platforms
traversaro Jan 2, 2025
b7d7a1f
Add workaround for rattler-build windows issue
traversaro Jan 2, 2025
4ac9004
Add fix more missing symbols exported in steering-controllers-library
traversaro Jan 3, 2025
b2f33b8
Add workaround for rattler-build windows relocability problems
traversaro Jan 3, 2025
c24771a
Fix control-toolbox patch
traversaro Jan 3, 2025
108a097
Add windows support for kinematics-interface
traversaro Jan 3, 2025
e5fb4ba
Fix compilation on Windows
Tobias-Fischer Jan 3, 2025
18b8704
Skip apex_containers on Windows
traversaro Jan 3, 2025
e49f484
fix patch
traversaro Jan 3, 2025
15db7a0
Create ros-noetic-avt-vimba-camera.patch
Tobias-Fischer Jan 3, 2025
37ac27d
Skip avt_vimba_camera on Windows
traversaro Jan 3, 2025
82c5186
patch avt_vimba_camera on Windows
traversaro Jan 3, 2025
247bebd
Skip avt_vimba_camera on Windows
traversaro Jan 3, 2025
4110398
Cumulative windows fixes
traversaro Jan 3, 2025
77a120e
Fix build of rviz_ogre_vendor in Windows
traversaro Jan 3, 2025
7606684
Update windows patch for ros-humble-image-publisher
traversaro Jan 3, 2025
223f7c0
Fixes for building rosx-introspection
traversaro Jan 3, 2025
d7d25b7
Add gazebo-ros2-control Windows patch
traversaro Jan 4, 2025
9151fa3
Add gripper-controllers patch
traversaro Jan 4, 2025
b98a921
Skip gtsam on Windows
traversaro Jan 4, 2025
88b20c8
Rename ros-humble-rosx-introspection.patch to ros-humble-rosx-introsp…
Tobias-Fischer Jan 4, 2025
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
445 changes: 262 additions & 183 deletions .ci_support/conda_forge_pinnings.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
15 changes: 0 additions & 15 deletions .github/testpr_environment.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Generate CI pipelines for ROS 2 packages

permissions:
actions: write
contents: write
Expand All @@ -18,7 +20,7 @@ jobs:
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: Install vinca
run: |
pip install git+https://github.com/RoboStack/vinca.git
pip install git+https://github.com/RoboStack/vinca.git@rattler-build-humble

- name: Generate recipes for linux-64
run: |
Expand Down
97 changes: 43 additions & 54 deletions .github/workflows/testpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, macos-14, windows-2019]
platform: [linux-64, linux-aarch64, osx-64, win-64, osx-arm64]
environment: [beta]
exclude:
- os: ubuntu-latest
platform: win-64
Expand Down Expand Up @@ -46,25 +47,25 @@ jobs:
- os: windows-2019
platform: osx-arm64
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.environment }}
frozen: true

# Workaround for https://github.com/RoboStack/ros-humble/pull/141#issuecomment-1941919816
- name: Clean up PATH
if: contains(matrix.os, 'windows')
uses: egor-tensin/cleanup-path@v4
with:
# cygpath in C:\Program Files\Git\usr\bin is used by install micromamba
# git in C:\Program Files\Git\bin is used by pip install git+
# 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'

- uses: actions/checkout@master
- name: install micromamba
uses: mamba-org/setup-micromamba@main
with:
environment-file: .github/testpr_environment.yml
condarc: |
channels:
- robostack-staging
- conda-forge

- shell: bash -l {0}
if: matrix.platform == 'linux-aarch64'
run: |
Expand All @@ -81,24 +82,15 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxi-dev libxmu-dev

- shell: bash -l {0}
run: |
conda config --show channels | grep defaults && conda config --remove channels defaults
conda info
conda config --show
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
- name: install vinca
shell: bash -l {0}
run: |
# use no-deps for now, otherwise problems with ruamel.
pip install git+https://github.com/RoboStack/vinca.git --no-deps
# 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
- name: Debug pkg-config problem
if: contains(matrix.os, 'windows')
shell: bash -l {0}
run: |
rm -rf /c/Strawberry
rm -rf "/c/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/"

- name: Check what files have changed
id: filecheck
Expand All @@ -121,83 +113,80 @@ jobs:
shell: bash -l {0}
if: steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
run: |
git clean -fdx
cp vinca_linux_64.yaml vinca.yaml
vinca --platform linux-64
ls
cat recipe.yaml
mkdir -p recipes
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m -n
ls -la recipes
- name: Generate recipes for linux-aarch64
shell: bash -l {0}
if: steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
run: |
git clean -fdx
cp vinca_linux_aarch64.yaml vinca.yaml
vinca --platform linux-aarch64
ls
cat recipe.yaml
mkdir -p recipes
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64 -m -n
ls -la recipes
- name: Generate recipes for osx-64
shell: bash -l {0}
if: steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
run: |
git clean -fdx
cp vinca_osx.yaml vinca.yaml
vinca --platform osx-64
ls
cat recipe.yaml
mkdir -p recipes
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64 -m -n
ls -la recipes
- name: Generate recipes for osx-arm64
shell: bash -l {0}
if: steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
run: |
git clean -fdx
cp vinca_osx_arm64.yaml vinca.yaml
vinca --platform osx-arm64
ls
cat recipe.yaml
mkdir -p recipes
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m -n
ls -la recipes
- name: Generate recipes for win-64
shell: bash -l {0}
if: steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
run: |
# Workaround for problem related to long paths
echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
git clean -fdx
mkdir /c/bld
cp vinca_win.yaml vinca.yaml
vinca --platform win-64
ls
cat recipe.yaml
mkdir -p recipes
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform win-64 -m -n
ls -la recipes
- name: Check if there are packages to be built
id: newrecipecheck
shell: bash -l {0}
run: |
# continue on error
set +e
grep -q "outputs: \[\]" recipe.yaml > /dev/null
test ! -d recipes
echo "::set-output name=RECIPE_CREATED::${?}"
- name: Build recipes for linux-64
shell: bash -l {0}
run: |
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
run: |
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
- name: Build recipes for linux-aarch64
shell: bash -l {0}
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
run: |
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=linux-aarch64
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=linux-aarch64
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
- name: Build recipes for osx-64
shell: bash -l {0}
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
run: |
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
- name: Build recipes for osx-arm64
shell: bash -l {0}
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
run: |
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=osx-arm64
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
- name: Build recipes for win-64
shell: bash -l {0}
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
run: |
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ recipes/
*.ps1
*.json
.DS_Store
# pixi environments
.pixi
*.egg-info
output/
68 changes: 13 additions & 55 deletions .scripts/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,25 @@ set -xeuo pipefail
export PYTHONUNBUFFERED=1
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}"
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}"
# export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support"
# export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"

cat >~/.condarc <<CONDARC
conda-build:
root-dir: /opt/conda/build_artifacts
CONDARC
curl -fsSL https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"

# This doesn't work, see e.g. https://dev.azure.com/robostack/ros_pipelines/_build/results?buildId=188&view=logs&j=4e20d398-0572-5e54-89c7-6bdb9c00a59a&t=f5885ff8-badf-54b3-1543-35164851bdf3
# if grep -q libgl "recipes/${CURRENT_BUILD_PKG_NAME}.yaml"; then
# sudo yum install -y install mesa-libGL-devel
# fi

export "CONDA_BLD_PATH=/opt/conda/build_artifacts"

mkdir -p $CONDA_BLD_PATH
conda index $CONDA_BLD_PATH

conda config --set remote_max_retries 5
conda config --add channels conda-forge
conda config --add channels robostack-staging
conda config --add channels $CONDA_BLD_PATH
conda config --remove channels defaults
# conda config --set channel_priority strict

mamba update conda --yes --quiet -c conda-forge
mamba install --yes --quiet pip conda-build anaconda-client mamba boa

# setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
# export PATH="$HOME/miniconda/bin:$PATH"
conda config --set anaconda_upload yes
conda config --set show_channel_urls true
conda config --set auto_update_conda false
conda config --set add_pip_as_python_dependency false

conda info
conda config --show-sources
conda list --show-channel-urls
export CONDA_BLD_PATH="/opt/conda/build_artifacts"

pwd

for recipe in ${CURRENT_RECIPES[@]}; do
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
done

anaconda -t ${ANACONDA_API_TOKEN} upload /opt/conda/build_artifacts/linux-*/*.tar.bz2 --force
# quetz-client "${QUETZ_URL}" /opt/conda/build_artifacts --force

# set up the condarc
cd ${FEEDSTOCK_ROOT}

# source run_conda_forge_build_setup

# # make the build number clobber
# make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
for recipe in ${CURRENT_RECIPES[@]}; do
pixi run -v rattler-build build \
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
-c robostack-staging -c conda-forge \
--output-dir $CONDA_BLD_PATH

# conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
# --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \

# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
# upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
# fi
done

# touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}"
pixi run upload ${CONDA_BLD_PATH}/linux-*/*.conda --force
73 changes: 14 additions & 59 deletions .scripts/build_osx.sh
Original file line number Diff line number Diff line change
@@ -1,70 +1,25 @@
#!/bin/bash

set -x

export FEEDSTOCK_ROOT=`pwd`

echo -e "\n\nInstalling a fresh version of Miniforge."
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download"
MINIFORGE_FILE="Mambaforge-MacOSX-x86_64.sh"
curl -L -O --silent "${MINIFORGE_URL}/${MINIFORGE_FILE}"
/bin/bash $MINIFORGE_FILE -b

echo -e "\n\nConfiguring conda."

source ${HOME}/mambaforge/etc/profile.d/conda.sh
conda activate base

conda config --set remote_max_retries 5

echo -e "\n\nInstalling conda-forge-ci-setup and conda-build."
mamba install -n base --quiet --yes conda-forge-ci-setup "conda-build>=24.5.0" pip boa quetz-client -c conda-forge

set -e

# echo -e "\n\nSetting up the condarc and mangling the compiler."
# # setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
# # mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml

# echo -e "\n\nMangling homebrew in the CI to avoid conflicts."
# # /usr/bin/sudo mangle_homebrew
# # /usr/bin/sudo -k

# echo -e "\n\nRunning the build setup script."
# # source run_conda_forge_build_setup

export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/"

mkdir -p $CONDA_BLD_PATH
conda index $CONDA_BLD_PATH
conda config --set anaconda_upload yes
conda config --set show_channel_urls true
conda config --set auto_update_conda false
conda config --set add_pip_as_python_dependency false

conda config --add channels conda-forge
conda config --add channels robostack-staging
conda config --add channels $CONDA_BLD_PATH
# conda config --set channel_priority strict
export FEEDSTOCK_ROOT=`pwd`
export "CONDA_BLD_PATH=$HOME/conda-bld/"

# echo -e "\n\nMaking the build clobber file and running the build."
# make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
curl -fsSL https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"

conda info
conda config --show-sources
conda list --show-channel-urls
# Remove homebrew from $PATH
export PATH=$(echo $PATH | tr ":" "\n" | grep -v 'homebrew' | xargs | tr ' ' ':')

for recipe in ${CURRENT_RECIPES[@]}; do
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
done
pixi run -v rattler-build build \
--recipe ${FEEDSTOCK_ROOT}/recipes/${recipe} \
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
-c robostack-staging -c conda-forge \
--output-dir $CONDA_BLD_PATH

anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-64/*.tar.bz2 --force
# quetz-client "${QUETZ_URL}" ${CONDA_BLD_PATH} --force

# conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
# -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
done

# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
# echo -e "\n\nUploading the packages."
# upload_package --validate --feedstock-name="libsolv-feedstock" ./ ./recipe ./.ci_support/${CONFIG}.yaml
# fi
pixi run upload ${CONDA_BLD_PATH}/osx-*/*.conda --force
Loading
Loading