Skip to content

Commit

Permalink
Move conda and conda-builds to latest conda versions (#4759)
Browse files Browse the repository at this point in the history
Two cherry picks to Move conda and conda builds to latest conda
versions.
  • Loading branch information
atalman authored Nov 24, 2023
1 parent 5351c1f commit 960acd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 39 deletions.
45 changes: 10 additions & 35 deletions .github/actions/setup-binary-builds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,41 +109,16 @@ runs:
set -euxo pipefail
CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"
if [[ "${PYTHON_VERSION}" = "3.11" ]]; then
conda create \
--yes --quiet \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
cmake=3.22 \
conda-build=3.27.0 \
conda=23.10.0 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
if [[ "${PACKAGE_TYPE:-}" == "conda" ]]; then
conda create \
--yes --quiet \
--prefix "${CONDA_ENV}" \
"python=3.8" \
cmake=3.22 \
conda-build=3.21 \
conda=23.7.3 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
else
conda create \
--yes --quiet \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
conda=23.7.3 \
cmake=3.22 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
fi
else
conda create \
--yes --quiet \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
cmake=3.22 \
conda-build=3.21 \
conda=23.7.3 \
ninja=1.10 \
pkg-config=0.29 \
wheel=0.37
fi
echo "CONDA_ENV=${CONDA_ENV}" >> "${GITHUB_ENV}"
echo "CONDA_RUN=conda run -p ${CONDA_ENV}" >> "${GITHUB_ENV}"
4 changes: 0 additions & 4 deletions .github/workflows/build_conda_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ jobs:
export USE_OPENMP="0"
fi
# conda 23.10 is installed by default on macos M1
# and this creates an issue. Hence downgrading it here
conda install --yes conda=23.7.3
${CONDA_RUN} conda build \
-c defaults \
-c "pytorch-${CHANNEL}" \
Expand Down

0 comments on commit 960acd4

Please sign in to comment.