# Microsoft.Mimalloc NuGet Release Pipeline
# Manually triggered pipeline to build, sign, and publish the mimalloc NuGet package.
# Builds x64 and ARM64 Windows binaries, signs via ESRP, and packs NuGet.

trigger: none
pr: none

parameters:
  - name: version
    displayName: 'NuGet package version'
    type: string
    default: '1.0.0'

  - name: buildConfig
    displayName: 'Build configuration'
    type: string
    default: 'Release'
    values:
      - Release
      - Debug

  - name: signBinaries
    displayName: 'Sign binaries (ESRP)?'
    type: string
    default: 'No'
    values:
      - 'Yes'
      - 'No'

  - name: publishToFeed
    displayName: 'Publish NuGet to artifact feed?'
    type: boolean
    default: false

variables:
  nuspecPath: '$(Build.SourcesDirectory)/contrib/nuget/Microsoft.Mimalloc.nuspec'
  artifactStaging: '$(Build.ArtifactStagingDirectory)'
