@@ -9,67 +9,25 @@ set -xeuo pipefail
9
9
export PYTHONUNBUFFERED=1
10
10
export FEEDSTOCK_ROOT=" ${FEEDSTOCK_ROOT:-/ home/ conda/ feedstock_root} "
11
11
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"
14
12
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 "
19
15
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 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"
50
17
51
18
pwd
52
19
53
- for recipe in ${CURRENT_RECIPES[@]} ; do
54
- cd ${FEEDSTOCK_ROOT} /recipes/${recipe}
55
- boa build . -m ${FEEDSTOCK_ROOT} /.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT} /conda_build_config.yaml
56
- done
57
-
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
20
+ cd ${FEEDSTOCK_ROOT}
62
21
63
- # source run_conda_forge_build_setup
64
-
65
- # # make the build number clobber
66
- # make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
22
+ for recipe in ${CURRENT_RECIPES[@]} ; do
23
+ pixi run -v rattler-build build \
24
+ --recipe ${FEEDSTOCK_ROOT} /recipes/${recipe} \
25
+ -m ${FEEDSTOCK_ROOT} /conda_build_config.yaml \
26
+ -c robostack-staging -c conda-forge \
27
+ --output-dir $CONDA_BLD_PATH
67
28
68
- # conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
69
- # --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"
29
+ # -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
70
30
71
- # if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
72
- # upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
73
- # fi
31
+ done
74
32
75
- # touch "${FEEDSTOCK_ROOT}/build_artifacts/ conda-forge-build-done-${CONFIG}"
33
+ pixi run upload ${CONDA_BLD_PATH} /linux- * / * . conda --force
0 commit comments