mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-08 00:09:31 +03:00
Extend azure pipeline with Ubuntu 24 & 20, windows 2019, and macOS 15
This commit is contained in:
parent
ff56f6acbc
commit
e7198ce397
1 changed files with 127 additions and 36 deletions
|
@ -15,7 +15,7 @@ trigger:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job:
|
- job:
|
||||||
displayName: Windows
|
displayName: Windows 2022
|
||||||
pool:
|
pool:
|
||||||
vmImage:
|
vmImage:
|
||||||
windows-2022
|
windows-2022
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
||||||
# artifact: mimalloc-windows-$(BuildType)
|
# artifact: mimalloc-windows-$(BuildType)
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: Linux
|
displayName: Ubuntu 22.04
|
||||||
pool:
|
pool:
|
||||||
vmImage:
|
vmImage:
|
||||||
ubuntu-22.04
|
ubuntu-22.04
|
||||||
|
@ -135,10 +135,10 @@ jobs:
|
||||||
# artifact: mimalloc-ubuntu-$(BuildType)
|
# artifact: mimalloc-ubuntu-$(BuildType)
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
displayName: macOS
|
displayName: macOS 14 (Sonoma)
|
||||||
pool:
|
pool:
|
||||||
vmImage:
|
vmImage:
|
||||||
macOS-latest
|
macOS-14
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
Debug:
|
Debug:
|
||||||
|
@ -163,35 +163,126 @@ jobs:
|
||||||
# - upload: $(Build.SourcesDirectory)/$(BuildType)
|
# - upload: $(Build.SourcesDirectory)/$(BuildType)
|
||||||
# artifact: mimalloc-macos-$(BuildType)
|
# artifact: mimalloc-macos-$(BuildType)
|
||||||
|
|
||||||
# - job:
|
# ----------------------------------------------------------
|
||||||
# displayName: Windows-2017
|
# Other OS versions (just debug mode)
|
||||||
# pool:
|
# ----------------------------------------------------------
|
||||||
# vmImage:
|
|
||||||
# vs2017-win2016
|
- job:
|
||||||
# strategy:
|
displayName: Windows 2019
|
||||||
# matrix:
|
pool:
|
||||||
# Debug:
|
vmImage:
|
||||||
# BuildType: debug
|
windows-2019
|
||||||
# cmakeExtraArgs: -A x64 -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
strategy:
|
||||||
# MSBuildConfiguration: Debug
|
matrix:
|
||||||
# Release:
|
Debug:
|
||||||
# BuildType: release
|
BuildType: debug
|
||||||
# cmakeExtraArgs: -A x64 -DCMAKE_BUILD_TYPE=Release
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
||||||
# MSBuildConfiguration: Release
|
MSBuildConfiguration: Debug
|
||||||
# Secure:
|
steps:
|
||||||
# BuildType: secure
|
- task: CMake@1
|
||||||
# cmakeExtraArgs: -A x64 -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON
|
inputs:
|
||||||
# MSBuildConfiguration: Release
|
workingDirectory: $(BuildType)
|
||||||
# steps:
|
cmakeArgs: .. $(cmakeExtraArgs)
|
||||||
# - task: CMake@1
|
- task: MSBuild@1
|
||||||
# inputs:
|
inputs:
|
||||||
# workingDirectory: $(BuildType)
|
solution: $(BuildType)/libmimalloc.sln
|
||||||
# cmakeArgs: .. $(cmakeExtraArgs)
|
configuration: '$(MSBuildConfiguration)'
|
||||||
# - task: MSBuild@1
|
msbuildArguments: -m
|
||||||
# inputs:
|
- script: ctest --verbose --timeout 180 -C $(MSBuildConfiguration)
|
||||||
# solution: $(BuildType)/libmimalloc.sln
|
workingDirectory: $(BuildType)
|
||||||
# configuration: '$(MSBuildConfiguration)'
|
displayName: CTest
|
||||||
# - script: |
|
|
||||||
# cd $(BuildType)
|
- job:
|
||||||
# ctest --verbose --timeout 180
|
displayName: Ubuntu 24.04
|
||||||
# displayName: CTest
|
pool:
|
||||||
|
vmImage:
|
||||||
|
ubuntu-24.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
Debug:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
BuildType: debug
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
||||||
|
Debug++:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
BuildType: debug-cxx
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON -DMI_USE_CXX=ON
|
||||||
|
Debug Clang:
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
BuildType: debug-clang
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: CMake@1
|
||||||
|
inputs:
|
||||||
|
workingDirectory: $(BuildType)
|
||||||
|
cmakeArgs: .. $(cmakeExtraArgs)
|
||||||
|
- script: make -j$(nproc) -C $(BuildType)
|
||||||
|
displayName: Make
|
||||||
|
- script: ctest --verbose --timeout 180
|
||||||
|
workingDirectory: $(BuildType)
|
||||||
|
displayName: CTest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
displayName: Ubuntu 20.04
|
||||||
|
pool:
|
||||||
|
vmImage:
|
||||||
|
ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
Debug:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
BuildType: debug
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
||||||
|
Debug++:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
BuildType: debug-cxx
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON -DMI_USE_CXX=ON
|
||||||
|
Debug Clang:
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
BuildType: debug-clang
|
||||||
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: CMake@1
|
||||||
|
inputs:
|
||||||
|
workingDirectory: $(BuildType)
|
||||||
|
cmakeArgs: .. $(cmakeExtraArgs)
|
||||||
|
- script: make -j$(nproc) -C $(BuildType)
|
||||||
|
displayName: Make
|
||||||
|
- script: ctest --verbose --timeout 180
|
||||||
|
workingDirectory: $(BuildType)
|
||||||
|
displayName: CTest
|
||||||
|
|
||||||
|
- job:
|
||||||
|
displayName: macOS 15 (Sequia)
|
||||||
|
pool:
|
||||||
|
vmImage:
|
||||||
|
macOS-15
|
||||||
|
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:
|
||||||
|
- task: CMake@1
|
||||||
|
inputs:
|
||||||
|
workingDirectory: $(BuildType)
|
||||||
|
cmakeArgs: .. $(cmakeExtraArgs)
|
||||||
|
- script: make -j$(sysctl -n hw.ncpu) -C $(BuildType)
|
||||||
|
displayName: Make
|
||||||
|
- script: ctest --verbose --timeout 180
|
||||||
|
workingDirectory: $(BuildType)
|
||||||
|
displayName: CTest
|
||||||
|
|
Loading…
Add table
Reference in a new issue