4daed9d946
This pull request switches us to the new WinDev scaleset agent pool. It should be faster than the hosted pool, and the larger disks allow us to get rid of our PCH cleanup step.
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
parameters:
|
|
platform: ''
|
|
additionalBuildArguments: ''
|
|
|
|
jobs:
|
|
- job: Build${{ parameters.platform }}AuditMode
|
|
displayName: Static Analysis Build ${{ parameters.platform }}
|
|
variables:
|
|
BuildConfiguration: AuditMode
|
|
BuildPlatform: ${{ parameters.platform }}
|
|
pool: "windevbuildagents"
|
|
# The public pool is also an option!
|
|
# pool: { vmImage: windows-2019 }
|
|
|
|
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'
|
|
vsVersion: 16.0
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
clean: true
|
|
maximumCpuCount: true
|