From 274ed7e9f32b48229ca214c31c3b27c9576642b6 Mon Sep 17 00:00:00 2001 From: Shaopeng <81775155+shaopeng-gh@users.noreply.github.com> Date: Thu, 20 Jul 2023 08:24:53 -0700 Subject: [PATCH] Fix build (#2692) * add 3.1 and 6.0 * 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * done --- ado-build.yml | 92 +++++++++++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 40 deletions(-) diff --git a/ado-build.yml b/ado-build.yml index eda64dfb8..33b9d2c6d 100644 --- a/ado-build.yml +++ b/ado-build.yml @@ -1,43 +1,55 @@ pr: -- 'main' + - "main" jobs: -- job: NET_pipeline - strategy: - matrix: - linux: - imageName: 'ubuntu-20.04' - mac: - imageName: 'macOS-latest' - windows: - imageName: 'windows-latest' - maxParallel: 4 - - pool: - vmImage: $(imageName) - - steps: - # Build and test - - task: PowerShell@2 - displayName: Build and Test - inputs: - targetType: filePath - filePath: ./scripts/BuildAndTest.ps1 - - - task: PublishBuildArtifacts@1 - inputs: - pathToPublish: 'msbuild.binlog' - artifactName: 'binlog' - - - task: ComponentGovernanceComponentDetection@0 - -- job: npm_pipeline - pool: - vmImage: 'windows-latest' - steps: - # Build Multitool for npm - - task: PowerShell@2 - displayName: Build Multitool for npm - inputs: - targetType: filePath - filePath: ./scripts/BuildMultitoolForNpm.ps1 + - job: NET_pipeline + strategy: + matrix: + linux: + imageName: "ubuntu-20.04" + mac: + imageName: "macOS-latest" + windows: + imageName: "windows-latest" + maxParallel: 4 + + pool: + vmImage: $(imageName) + + steps: + - task: UseDotNet@2 + displayName: .NET Core 3.1 sdk + inputs: + version: "3.1.x" + packageType: sdk + + - task: UseDotNet@2 + displayName: .NET Core 6.0 sdk + inputs: + version: "6.0.x" + packageType: sdk + + # Build and test + - task: PowerShell@2 + displayName: Build and Test + inputs: + targetType: filePath + filePath: ./scripts/BuildAndTest.ps1 + + - task: PublishBuildArtifacts@1 + inputs: + pathToPublish: "msbuild.binlog" + artifactName: "binlog" + + - task: ComponentGovernanceComponentDetection@0 + + - job: npm_pipeline + pool: + vmImage: "windows-latest" + steps: + # Build Multitool for npm + - task: PowerShell@2 + displayName: Build Multitool for npm + inputs: + targetType: filePath + filePath: ./scripts/BuildMultitoolForNpm.ps1