2018-10-03 00:30:01 +03:00
|
|
|
# Licensed to the .NET Foundation under one or more agreements.
|
|
|
|
# The .NET Foundation licenses this file to you under the MIT license.
|
|
|
|
# See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
# PR build for Infer.NET using MSBuild
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- repo: self
|
|
|
|
clean: true
|
|
|
|
|
|
|
|
trigger: none # disable CI build
|
|
|
|
|
2019-09-30 13:59:14 +03:00
|
|
|
# Cannot use matrix strategy to create jobs for different platforms,
|
|
|
|
# since then the platform is given as a variable which cannot be passed as a parameter to a template,
|
|
|
|
# because templates are actualized at a very early stage when the variable has no value yet.
|
2018-10-25 11:46:32 +03:00
|
|
|
jobs:
|
|
|
|
- job: Win64 # Hosted Windows agent, VS 2017, testing on x64
|
2019-09-30 13:59:14 +03:00
|
|
|
timeoutInMinutes: 120
|
2018-10-25 11:46:32 +03:00
|
|
|
pool:
|
2022-08-23 17:38:02 +03:00
|
|
|
vmImage: windows-latest
|
2018-10-25 11:46:32 +03:00
|
|
|
steps:
|
2020-07-26 09:08:10 +03:00
|
|
|
- task: NuGetToolInstaller@1
|
2018-10-25 11:46:32 +03:00
|
|
|
inputs:
|
2020-07-26 09:08:10 +03:00
|
|
|
versionSpec: '>=5.5.1'
|
2018-10-25 11:46:32 +03:00
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: 'restore'
|
|
|
|
restoreSolution: '**/*.sln'
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: '**/*.sln'
|
|
|
|
clean: true
|
|
|
|
configuration: 'Release'
|
|
|
|
|
|
|
|
- template: vstest-fast.yml
|
|
|
|
parameters:
|
|
|
|
Platform: 'x64'
|
|
|
|
|
|
|
|
- job: Win32 # Hosted Windows agent, VS 2017, testing on x86
|
2019-09-30 13:59:14 +03:00
|
|
|
timeoutInMinutes: 120
|
2018-10-25 11:46:32 +03:00
|
|
|
pool:
|
2022-08-23 17:38:02 +03:00
|
|
|
vmImage: windows-latest
|
2018-10-25 11:46:32 +03:00
|
|
|
steps:
|
2020-07-26 09:08:10 +03:00
|
|
|
- task: NuGetToolInstaller@1
|
2018-10-25 11:46:32 +03:00
|
|
|
inputs:
|
2020-07-26 09:08:10 +03:00
|
|
|
versionSpec: '>=5.5.1'
|
2018-10-25 11:46:32 +03:00
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: 'restore'
|
|
|
|
restoreSolution: '**/*.sln'
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: '**/*.sln'
|
|
|
|
clean: true
|
|
|
|
configuration: 'Release'
|
|
|
|
|
|
|
|
- template: vstest-fast.yml
|
|
|
|
parameters:
|
|
|
|
Platform: 'x86'
|