From eb704659e2f2a4b5534054f38c958b577d6ba4c8 Mon Sep 17 00:00:00 2001 From: Michael Norris Date: Fri, 10 Jan 2025 18:42:07 -0800 Subject: [PATCH] Start migration off defaults to conda-forge channel (#4126) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4126 Differential Revision: D68043874 --- .github/actions/build_cmake/action.yml | 6 ++++++ .github/actions/build_conda/action.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.github/actions/build_cmake/action.yml b/.github/actions/build_cmake/action.yml index fa20974af5..23995bb173 100644 --- a/.github/actions/build_cmake/action.yml +++ b/.github/actions/build_cmake/action.yml @@ -22,18 +22,23 @@ runs: - name: Setup miniconda uses: conda-incubator/setup-miniconda@v3 with: + channels: conda-forge,nodefaults + conda-remove-defaults: "true" python-version: '3.11' miniconda-version: latest - name: Configure build environment shell: bash run: | # initialize Conda + conda config --show channels conda config --set solver libmamba conda update -y -q conda echo "$CONDA/bin" >> $GITHUB_PATH + conda config --show channels conda install -y -q python=3.11 cmake=3.26 make=4.2 swig=4.0 "numpy<2" scipy=1.14 pytest=7.4 gflags=2.2 + conda config --show channels # install base packages for ARM64 if [ "${{ runner.arch }}" = "ARM64" ]; then conda install -y -q -c conda-forge openblas=0.3 gxx_linux-aarch64=14.2 sysroot_linux-aarch64=2.17 @@ -65,6 +70,7 @@ runs: else conda install -y -q "pytorch<2.5" -c pytorch fi + conda config --show channels - name: ROCm - Install dependencies if: inputs.rocm == 'ON' shell: bash diff --git a/.github/actions/build_conda/action.yml b/.github/actions/build_conda/action.yml index ff860007b2..eb1167086f 100644 --- a/.github/actions/build_conda/action.yml +++ b/.github/actions/build_conda/action.yml @@ -31,6 +31,8 @@ runs: with: python-version: '3.11' miniconda-version: latest + channels: conda-forge,nodefaults + conda-remove-defaults: "true" - name: Install conda build tools shell: ${{ steps.choose_shell.outputs.shell }} run: |