@@ -22,49 +22,62 @@ runs:
22
22
- name : Setup miniconda
23
23
uses : conda-incubator/setup-miniconda@v3
24
24
with :
25
+ channels : conda-forge
26
+ conda-remove-defaults : " true"
25
27
python-version : ' 3.11'
26
28
miniconda-version : latest
27
29
- name : Configure build environment
28
30
shell : bash
29
31
run : |
30
32
# initialize Conda
33
+ echo "*****1*****"
34
+ conda config --show channels
35
+ echo "*****2*****"
31
36
conda config --set solver libmamba
32
37
conda update -y -q conda
33
38
echo "$CONDA/bin" >> $GITHUB_PATH
39
+ echo "*****3*****"
40
+ conda config --show channels
41
+ echo "*****4*****"
34
42
35
- 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
43
+ conda install -c conda-forge - 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 --override-channels
36
44
45
+ echo "*****5*****"
46
+ conda config --show channels
47
+ echo "*****6*****"
37
48
# install base packages for ARM64
38
49
if [ "${{ runner.arch }}" = "ARM64" ]; then
39
- conda install -y -q -c conda-forge openblas=0.3 gxx_linux-aarch64=14.2 sysroot_linux-aarch64=2.17
50
+ conda install -c conda-forge -y -q openblas=0.3 gxx_linux-aarch64=14.2 sysroot_linux-aarch64=2.17 --override-channels
40
51
fi
41
52
42
53
# install base packages for X86_64
43
54
if [ "${{ runner.arch }}" = "X64" ]; then
44
55
# TODO: merge this with ARM64
45
- conda install -y -q -c conda-forge gxx_linux-64=14.2 sysroot_linux-64=2.17
46
- conda install -y -q mkl=2023 mkl-devel=2023
56
+ conda install -c conda-forge -y -q gxx_linux-64=14.2 sysroot_linux-64=2.17 --override-channels
57
+ conda install -c conda-forge - y -q mkl=2023 mkl-devel=2023 --override-channels
47
58
fi
48
59
49
60
# no CUDA needed for ROCm so skip this
50
61
if [ "${{ inputs.rocm }}" = "ON" ]; then
51
62
:
52
63
# regular CUDA for GPU builds
53
64
elif [ "${{ inputs.gpu }}" = "ON" ] && [ "${{ inputs.cuvs }}" = "OFF" ]; then
54
- conda install -y -q cuda-toolkit=12.4 -c "nvidia/label/cuda-12.4.0"
65
+ conda install -c conda-forge - y -q cuda-toolkit=12.4 -c "nvidia/label/cuda-12.4.0" --override-channels
55
66
# and CUDA from cuVS channel for cuVS builds
56
67
elif [ "${{ inputs.cuvs }}" = "ON" ]; then
57
- conda install -y -q libcuvs=24.12 'cuda-version>=12.0,<=12.5' cuda-toolkit=12.4.1 gxx_linux-64=12.4 -c rapidsai -c conda-forge
68
+ conda install -y -q libcuvs=24.12 'cuda-version>=12.0,<=12.5' cuda-toolkit=12.4.1 gxx_linux-64=12.4 -c rapidsai -c conda-forge --override-channels
58
69
fi
59
70
# install test packages
60
71
if [ "${{ inputs.rocm }}" = "ON" ]; then
61
72
: # skip torch install via conda, we need to install via pip to get
62
73
# ROCm-enabled version until it's supported in conda by PyTorch
63
74
elif [ "${{ inputs.gpu }}" = "ON" ]; then
64
- conda install -y -q "pytorch<2.5" pytorch-cuda=12.4 -c pytorch -c "nvidia/label/cuda-12.4.0"
75
+ conda install -y -q "pytorch<2.5" pytorch-cuda=12.4 -c pytorch -c "nvidia/label/cuda-12.4.0" --override-channels
65
76
else
66
- conda install -y -q "pytorch<2.5" -c pytorch
77
+ conda install -y -q "pytorch<2.5" -c pytorch --override-channels
67
78
fi
79
+ echo "*****7*****"
80
+ conda config --show channels
68
81
- name : ROCm - Install dependencies
69
82
if : inputs.rocm == 'ON'
70
83
shell : bash
0 commit comments