Update azure-pipelines.yml

This commit is contained in:
Martin Kroeker 2021-10-07 22:54:29 +02:00 committed by GitHub
parent 9a2fb17f51
commit 0b10a04a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 12 deletions

View File

@ -87,22 +87,21 @@ jobs:
pool: pool:
vmImage: 'windows-latest' vmImage: 'windows-latest'
steps: steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" - powershell: |
displayName: Add conda to PATH Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
Write-Host "##vso[task.prependpath]$env:CONDA\Library\bin"
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Library\bin"
displayName: Add ninja to PATH
- script: |
conda config --add channels conda-forge --force conda config --add channels conda-forge --force
conda config --set auto_update_conda false conda config --set auto_update_conda false
conda install --yes ninja conda install --yes ninja
dir C:\Miniconda\Library\bin dir C:\Miniconda\Library\bin
mkdir build - task: CMake@1
cd build inputs:
set PATH=%PATH%;C:\Miniconda\Library\bin workingDirectory: 'build' # Optional
cmake -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DMSVC_STATIC_CRT=ON .. cmakeArgs: '-G "Ninja" ..'
cmake --build . - task: CMake@1
inputs:
cmakeArgs: '--build . --config Release'
workingDirectory: 'build'
- job: Windows_clang_cl_flang - job: Windows_clang_cl_flang
pool: pool: