[CI] Fix failing arm build (#8751)

* Always install Conda env into /opt/python; use Mamba

* Change ownership of Conda env to buildkite-agent user

* Use unique name

* Fix
This commit is contained in:
Philip Hyunsu Cho
2023-02-03 22:32:48 -08:00
committed by GitHub
parent 0e61ba57d6
commit dd79ab846f
11 changed files with 46 additions and 36 deletions

View File

@@ -7,6 +7,13 @@ then
echo "Activating Conda environment ${conda_env}"
shift 1
cmake_args="$@"
# Workaround for file permission error
if [[ -n $CI_BUILD_UID ]]
then
gosu root chown -R "${CI_BUILD_UID}:${CI_BUILD_GID}" /opt/mambaforge/envs
fi
source activate ${conda_env}
cmake_prefix_flag="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX"
else