Skip to content

Commit

Permalink
Start migration off defaults to conda-forge channel (#4126)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #4126

Differential Revision: D68043874
  • Loading branch information
Michael Norris authored and facebook-github-bot committed Jan 11, 2025
1 parent 3d0ac32 commit eb70465
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/build_cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/build_conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit eb70465

Please # to comment.