Update azure-pipelines.yml

This commit is contained in:
Martin Kroeker 2021-10-08 07:18:35 +02:00 committed by GitHub
parent cce4420a89
commit e64e0ed9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 15 deletions

View File

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