Specifying OS in the pool definition. #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This pipeline will be triggered manually. | |
variables: | |
- name: tags | |
value: "nonproduction" | |
readonly: true | |
trigger: none | |
pr: none | |
resources: | |
repositories: | |
- repository: CustomPipelineTemplates | |
type: git | |
name: 1ESPipelineTemplates/OfficePipelineTemplates | |
ref: refs/tags/release | |
extends: | |
template: v1/Office.Unofficial.PipelineTemplate.yml@CustomPipelineTemplates | |
parameters: | |
pool: | |
name: Azure-Pipelines-1ESPT-ExDShared | |
image: windows-latest | |
os: windows | |
stages: | |
- stage: validate | |
displayName: Validate | |
jobs: | |
- job: validate | |
pool: | |
name: Azure-Pipelines-1ESPT-ExDShared | |
image: ubuntu-latest | |
os: linux | |
displayName: Validate | |
steps: | |
- checkout: self | |
- task: Bash@3 | |
inputs: | |
targetType: inline | |
script: | | |
echo $(version) | python ./bin/version.py | |
- stage: build | |
displayName: Build | |
jobs: | |
- job: build | |
strategy: | |
matrix: | |
x64-windows: | |
poolName: Azure-Pipelines-1ESPT-ExDShared | |
image: windows-latest | |
os: windows | |
runtime: win10-x64 | |
x64-mac: | |
poolName: Azure Pipelines | |
image: macOS-latest | |
os: macOS | |
runtime: osx-x64 | |
arm-mac: | |
poolName: Azure Pipelines | |
image: macOS-latest | |
os: macOS | |
runtime: osx-arm64 | |
pool: | |
name: $(poolName) | |
image: $(image) | |
os: $(os) | |
displayName: Build | |
steps: | |
- checkout: self | |
- task: UseDotNet@2 | |
displayName: Use .NET Core sdk 6.x | |
inputs: | |
version: 6.x | |
- task: NuGetToolInstaller@0 | |
displayName: Use NuGet 6.x | |
inputs: | |
versionSpec: 6.x | |
- task: DotNetCoreCLI@2 | |
displayName: Install dependencies | |
inputs: | |
command: restore | |
feedsToUse: select | |
vstsFeed: $(vstsFeedId) | |
includeNuGetOrg: false | |
arguments: '--runtime $(runtime)' | |
- task: DotNetCoreCLI@2 | |
displayName: Test | |
inputs: | |
command: test | |
arguments: --configuration release | |
- task: DotNetCoreCLI@2 | |
displayName: Build artifacts | |
inputs: | |
command: publish | |
projects: 'src/AzureAuth/AzureAuth.csproj' | |
arguments: '-p:Version=$(version) --configuration release --self-contained true --runtime $(runtime) --output dist/$(runtime)' | |
templateContext: | |
outputs: | |
- output: pipelineArtifact | |
path: dist/$(runtime) | |
artifact: azureauth-$(version)-$(runtime) |