Skip to content

Commit 3079240

Browse files
update
1 parent 19fa34b commit 3079240

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

azure-pipelines.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
source activate base
125125
echo "activate conda environment"
126126
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
128128
displayName: Install cmake, clang and gxx_linux-64 dependencies
129129
- script:
130130
ldd --version && (/sbin/ldconfig -p | grep stdc++) && (strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep LIBCXX) &&
@@ -145,7 +145,14 @@ jobs:
145145
condition: eq(variables['BuildLibTorchPackages'], 'true')
146146
displayName: Download libtorch native CUDA binaries
147147

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
149156
displayName: Build linux
150157
151158
- script: dotnet build -c $(BuildConfig) src/TorchVision/TorchVision.csproj /p:SkipCuda=true /p:SkipTests=true

0 commit comments

Comments
 (0)