diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5396b81030..7b0e419803 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,6 +23,7 @@ jobs: displayName: Setup - script: | . ~/.nix-profile/etc/profile.d/nix.sh + export CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" nix-shell --run ./script/ci.sh displayName: Build - task: PublishTestResults@2 @@ -39,12 +40,12 @@ jobs: steps: - script: | choco install -y msys2 - C:\tools\msys64\usr\bin\bash -lc "pacman --noconfirm -S make python mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-clang mingw-w64-x86_64-polly git diffutils" + C:\tools\msys64\usr\bin\bash -lc "pacman --noconfirm -S make python mingw-w64-x86_64-cmake mingw-w64-x86_64-clang mingw-w64-x86_64-polly git diffutils" displayName: Setup - script: | C:\tools\msys64\usr\bin\bash -l ./script/ci.sh env: - CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" + CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ # use mingw64 shell MSYSTEM: MINGW64 # don't let bash reset cwd diff --git a/script/ci.sh b/script/ci.sh index 408eb8f2a1..eb6ef0c61f 100755 --- a/script/ci.sh +++ b/script/ci.sh @@ -2,7 +2,7 @@ set -e mkdir build cd build -eval cmake ../src -DLLVM=ON $CMAKE_OPTIONS +eval cmake ../src $CMAKE_OPTIONS cmake --build . # -T to create .xml file ctest -j8 --output-on-failure --no-compress-output -T Test