mirror of https://github.com/microsoft/mimalloc
Add test to build pipeline
This commit is contained in:
parent
34a4de01b1
commit
df8f9fc59c
|
@ -23,19 +23,31 @@ jobs:
|
||||||
solution: build/libmimalloc.sln
|
solution: build/libmimalloc.sln
|
||||||
- upload: $(Build.SourcesDirectory)/build
|
- upload: $(Build.SourcesDirectory)/build
|
||||||
artifact: windows
|
artifact: windows
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: Linux
|
displayName: Linux
|
||||||
pool:
|
pool:
|
||||||
vmImage:
|
vmImage:
|
||||||
ubuntu-16.04
|
ubuntu-16.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
Debug:
|
||||||
|
CC: gcc
|
||||||
|
BuildType: Debug
|
||||||
|
Release:
|
||||||
|
CC: gcc
|
||||||
|
BuildType: Release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
inputs:
|
inputs:
|
||||||
workingDirectory: 'build'
|
workingDirectory: $(BuildType)
|
||||||
cmakeArgs: ..
|
cmakeArgs: ..
|
||||||
- script: make -j$(nproc) -C build
|
- script: make -j$(nproc) -C $(BuildType)
|
||||||
- upload: $(Build.SourcesDirectory)/build
|
- script: ctest -C $(BuildType)
|
||||||
|
- upload: $(Build.SourcesDirectory)/$(BuildType)
|
||||||
artifact: ubuntu
|
artifact: ubuntu
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: macOS
|
displayName: macOS
|
||||||
pool:
|
pool:
|
||||||
|
|
Loading…
Reference in New Issue