Skip to content

Commit

Permalink
Fix build (#2692)
Browse files Browse the repository at this point in the history
* add 3.1 and 6.0

* 1

* 2

* 3

* 4

* 5

* 6

* 7

* 8

* done
  • Loading branch information
shaopeng-gh authored Jul 20, 2023
1 parent dd3741f commit 274ed7e
Showing 1 changed file with 52 additions and 40 deletions.
92 changes: 52 additions & 40 deletions ado-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 274ed7e

Please sign in to comment.