mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-27 13:33:18 +08:00
build debug and secure versions on macOS in Azure pipelines
This commit is contained in:
parent
313d4b8ffd
commit
be10ebea35
@ -21,6 +21,9 @@ jobs:
|
|||||||
Release:
|
Release:
|
||||||
BuildType: release
|
BuildType: release
|
||||||
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
||||||
|
Secure:
|
||||||
|
BuildType: secure
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON
|
||||||
steps:
|
steps:
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
inputs:
|
inputs:
|
||||||
@ -73,19 +76,15 @@ jobs:
|
|||||||
CXX: clang++
|
CXX: clang++
|
||||||
BuildType: secure-clang
|
BuildType: secure-clang
|
||||||
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
inputs:
|
inputs:
|
||||||
workingDirectory: $(BuildType)
|
workingDirectory: $(BuildType)
|
||||||
cmakeArgs: .. $(cmakeExtraArgs)
|
cmakeArgs: .. $(cmakeExtraArgs)
|
||||||
|
|
||||||
- script: make -j$(nproc) -C $(BuildType)
|
- script: make -j$(nproc) -C $(BuildType)
|
||||||
displayName: Make
|
displayName: Make
|
||||||
|
|
||||||
- script: make test -C $(BuildType)
|
- script: make test -C $(BuildType)
|
||||||
displayName: Ctest
|
displayName: CTest
|
||||||
|
|
||||||
- upload: $(Build.SourcesDirectory)/$(BuildType)
|
- upload: $(Build.SourcesDirectory)/$(BuildType)
|
||||||
artifact: mimalloc-ubuntu-$(BuildType)
|
artifact: mimalloc-ubuntu-$(BuildType)
|
||||||
|
|
||||||
@ -94,11 +93,25 @@ jobs:
|
|||||||
pool:
|
pool:
|
||||||
vmImage:
|
vmImage:
|
||||||
macOS-10.14
|
macOS-10.14
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
Debug:
|
||||||
|
BuildType: debug
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
||||||
|
Release:
|
||||||
|
BuildType: release
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
||||||
|
Secure:
|
||||||
|
BuildType: secure
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON
|
||||||
steps:
|
steps:
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
inputs:
|
inputs:
|
||||||
workingDirectory: 'build'
|
workingDirectory: $(BuildType)
|
||||||
cmakeArgs: ..
|
cmakeArgs: .. $(cmakeExtraArgs)
|
||||||
- script: make -j$(sysctl -n hw.ncpu) -C build
|
- script: make -j$(sysctl -n hw.ncpu) -C $(BuildType)
|
||||||
- upload: $(Build.SourcesDirectory)/build
|
displayName: Make
|
||||||
artifact: mimalloc-macos
|
- script: make test -C $(BuildType)
|
||||||
|
displayName: CTest
|
||||||
|
- upload: $(Build.SourcesDirectory)/$(BuildType)
|
||||||
|
artifact: mimalloc-macos-$(BuildType)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user