Skip to content

Commit 981f5ab

Browse files
committed
try some more
1 parent ecfffa1 commit 981f5ab

File tree

3 files changed

+2873
-185
lines changed

3 files changed

+2873
-185
lines changed

.scripts/build_linux.sh

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -9,67 +9,21 @@ set -xeuo pipefail
99
export PYTHONUNBUFFERED=1
1010
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}"
1111
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}"
12-
# export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support"
13-
# export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"
1412

15-
cat >~/.condarc <<CONDARC
16-
conda-build:
17-
root-dir: /opt/conda/build_artifacts
18-
CONDARC
13+
curl -fsSL https://pixi.sh/install.sh | bash
14+
export PATH="$HOME/.pixi/bin:$PATH"
1915

20-
# 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
21-
# if grep -q libgl "recipes/${CURRENT_BUILD_PKG_NAME}.yaml"; then
22-
# sudo yum install -y install mesa-libGL-devel
23-
# fi
24-
25-
export "CONDA_BLD_PATH=/opt/conda/build_artifacts"
26-
27-
mkdir -p $CONDA_BLD_PATH
28-
conda index $CONDA_BLD_PATH
29-
30-
conda config --set remote_max_retries 5
31-
conda config --add channels conda-forge
32-
conda config --add channels robostack-staging
33-
conda config --add channels $CONDA_BLD_PATH
34-
conda config --remove channels defaults
35-
# conda config --set channel_priority strict
36-
37-
mamba update conda --yes --quiet -c conda-forge
38-
mamba install --yes --quiet pip conda-build=3.27 anaconda-client mamba boa
39-
40-
# setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
41-
# export PATH="$HOME/miniconda/bin:$PATH"
42-
conda config --set anaconda_upload yes
43-
conda config --set show_channel_urls true
44-
conda config --set auto_update_conda false
45-
conda config --set add_pip_as_python_dependency false
46-
47-
conda info
48-
conda config --show-sources
49-
conda list --show-channel-urls
16+
export CONDA_BLD_PATH="/opt/conda/build_artifacts"
5017

5118
pwd
5219

5320
for recipe in ${CURRENT_RECIPES[@]}; do
5421
cd ${FEEDSTOCK_ROOT}/recipes/${recipe}
55-
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml
22+
pixi run rattler-build build --recipe . \
23+
-m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
24+
-m ${FEEDSTOCK_ROOT}/conda_build_config.yaml \
25+
-c robostack-jazzy -c conda-forge \
26+
--output-dir $CONDA_BLD_PATH
5627
done
5728

58-
anaconda -t ${ANACONDA_API_TOKEN} upload /opt/conda/build_artifacts/linux-*/*.tar.bz2 --force
59-
# quetz-client "${QUETZ_URL}" /opt/conda/build_artifacts --force
60-
61-
# set up the condarc
62-
63-
# source run_conda_forge_build_setup
64-
65-
# # make the build number clobber
66-
# make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
67-
68-
# conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
69-
# --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"
70-
71-
# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
72-
# upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
73-
# fi
74-
75-
# touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}"
29+
anaconda -t ${ANACONDA_API_TOKEN} upload /opt/conda/build_artifacts/linux-*/*.conda --force

0 commit comments

Comments
 (0)