File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124
124
source activate base
125
125
echo "activate conda environment"
126
126
conda activate base
127
- conda install cmake=3.22.1 clang=14.0.6 clangxx=14.0.6 gxx_linux-64=11.2.0
127
+ conda install -y cmake=3.22.1 clang=14.0.6 clangxx=14.0.6 gxx_linux-64=11.2.0
128
128
displayName : Install cmake, clang and gxx_linux-64 dependencies
129
129
- script :
130
130
ldd --version && (/sbin/ldconfig -p | grep stdc++) && (strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep LIBCXX) &&
@@ -145,7 +145,14 @@ jobs:
145
145
condition : eq(variables['BuildLibTorchPackages'], 'true')
146
146
displayName : Download libtorch native CUDA binaries
147
147
148
- - script : dotnet build -c $(BuildConfig) src/TorchSharp/TorchSharp.csproj /p:SkipCuda=true /p:SkipTests=true
148
+ - script : |
149
+ ~/miniconda3/bin/conda init bash
150
+ source ~/.bashrc
151
+ eval "$(~/miniconda3/bin/conda shell.bash hook)"
152
+ source activate base
153
+ echo "activate conda environment"
154
+ conda activate base
155
+ dotnet build -c $(BuildConfig) src/TorchSharp/TorchSharp.csproj /p:SkipCuda=true /p:SkipTests=true
149
156
displayName: Build linux
150
157
151
158
- script : dotnet build -c $(BuildConfig) src/TorchVision/TorchVision.csproj /p:SkipCuda=true /p:SkipTests=true
You can’t perform that action at this time.
0 commit comments