2019-05-24 23:48:10 +02:00
|
|
|
parameters:
|
|
|
|
platform: ''
|
|
|
|
additionalBuildArguments: ''
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: Build${{ parameters.platform }}AuditMode
|
|
|
|
displayName: Static Analysis Build ${{ parameters.platform }}
|
|
|
|
variables:
|
|
|
|
BuildConfiguration: AuditMode
|
|
|
|
BuildPlatform: ${{ parameters.platform }}
|
2021-08-04 19:00:41 +02:00
|
|
|
pool:
|
|
|
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
|
|
name: WinDevPoolOSS-L
|
|
|
|
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
|
|
name: WinDevPool-L
|
|
|
|
demands: ImageOverride -equals WinDevVS16-latest
|
2019-05-24 23:48:10 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
submodules: true
|
|
|
|
clean: true
|
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
|
|
|
displayName: Ensure NuGet 4.8.1
|
|
|
|
inputs:
|
|
|
|
versionSpec: 4.8.1
|
|
|
|
|
|
|
|
# In the Microsoft Azure DevOps tenant, NuGetCommand is ambiguous.
|
|
|
|
# This should be `task: NuGetCommand@2`
|
|
|
|
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
|
|
|
|
displayName: Restore NuGet packages
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
|
|
|
restoreSolution: OpenConsole.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build solution **\OpenConsole.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\OpenConsole.sln'
|
2019-06-26 23:13:32 +02:00
|
|
|
vsVersion: 16.0
|
2019-05-24 23:48:10 +02:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
clean: true
|
|
|
|
maximumCpuCount: true
|