Skip to content

Commit e131a54

Browse files
Michael Norrisfacebook-github-bot
Michael Norris
authored andcommitted
Start migration off defaults to conda-forge channel (facebookresearch#4126)
Summary: Pull Request resolved: facebookresearch#4126 Differential Revision: D68043874
1 parent 3d0ac32 commit e131a54

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/actions/build_cmake/action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,23 @@ runs:
2424
with:
2525
python-version: '3.11'
2626
miniconda-version: latest
27+
channels: conda-forge,nodefaults
28+
conda-remove-defaults: "true"
2729
- name: Configure build environment
2830
shell: bash
2931
run: |
3032
# initialize Conda
33+
conda config --show channels
34+
conda config --remove channels defaults
35+
conda config --show channels
3136
conda config --set solver libmamba
3237
conda update -y -q conda
3338
echo "$CONDA/bin" >> $GITHUB_PATH
39+
conda config --show channels
3440
3541
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
3642
43+
conda config --show channels
3744
# install base packages for ARM64
3845
if [ "${{ runner.arch }}" = "ARM64" ]; then
3946
conda install -y -q -c conda-forge openblas=0.3 gxx_linux-aarch64=14.2 sysroot_linux-aarch64=2.17
@@ -65,6 +72,7 @@ runs:
6572
else
6673
conda install -y -q "pytorch<2.5" -c pytorch
6774
fi
75+
conda config --show channels
6876
- name: ROCm - Install dependencies
6977
if: inputs.rocm == 'ON'
7078
shell: bash

.github/actions/build_conda/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ runs:
3131
with:
3232
python-version: '3.11'
3333
miniconda-version: latest
34+
channels: conda-forge,nodefaults
35+
conda-remove-defaults: "true"
3436
- name: Install conda build tools
3537
shell: ${{ steps.choose_shell.outputs.shell }}
3638
run: |

0 commit comments

Comments
 (0)