Skip to content

Commit

Permalink
[CI] Fix Conda Permission on MacOS Github Action(#9004)
Browse files Browse the repository at this point in the history
Co-authored-by: Mehrdad <noreply@github.com>
  • Loading branch information
2 people authored and rkooo567 committed Jun 18, 2020
1 parent d506350 commit cd75e93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci/travis/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ install_miniconda() {
conda="${miniconda_dir}/bin/conda"
;;
esac
else
case "${OSTYPE}" in
darwin*)
# When 'conda' is preinstalled on Mac (as on GitHub Actions), it uses this directory
local miniconda_dir="/usr/local/miniconda"
sudo mkdir -p -- "${miniconda_dir}"
sudo chown -R "${USER}" "${miniconda_dir}"
;;
esac
fi

if [ ! -x "${CONDA_PYTHON_EXE-}" ]; then # If conda isn't activated, activate it
Expand Down

0 comments on commit cd75e93

Please sign in to comment.