Skip to content

Commit

Permalink
Merge branch 'users/shaopeng-gh/fixbuild' into users/shaopeng-gh/wix_…
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
shaopeng-gh committed Jul 18, 2023
2 parents 41060c5 + 920f56a commit d78a031
Showing 1 changed file with 84 additions and 48 deletions.
132 changes: 84 additions & 48 deletions ado-build.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,87 @@
pr:
- '*'
- "*"

jobs:
- job: linux
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
submodules: true

- task: Bash@3
displayName: 'Build and Test'
inputs:
filePath: 'BuildAndTest.sh'
failOnStderr: true

- job: windows
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
submodules: true

- task: CmdLine@2
displayName: 'Build and Test'
inputs:
script: 'BuildAndTest.cmd'

- task: ComponentGovernanceComponentDetection@0
inputs:
ignoreDirectories: 'src\sarif-sdk'

- job: mac
pool:
vmImage: 'macOS-latest'
steps:
- checkout: self
submodules: true

- task: Bash@3
displayName: 'Build and Test'
inputs:
filePath: 'BuildAndTest.sh'
failOnStderr: true

- task: Bash@3
displayName: 'Run BinSkim'
inputs:
targetType: 'inline'
script: 'dotnet bld/bin/x64_Release/netcoreapp3.1/binskim.dll analyze src/Test.FunctionalTests.BinSkim.Driver/BaselineTestData/macho.*'
- job: linux
pool:
vmImage: "ubuntu-20.04"
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

- checkout: self
submodules: true

- task: Bash@3
displayName: "Build and Test"
inputs:
filePath: "BuildAndTest.sh"
failOnStderr: true

- job: windows
pool:
vmImage: "windows-latest"
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

- checkout: self
submodules: true

- task: CmdLine@2
displayName: "Build and Test"
inputs:
script: "BuildAndTest.cmd"

- task: ComponentGovernanceComponentDetection@0
inputs:
ignoreDirectories: 'src\sarif-sdk'

- job: mac
pool:
vmImage: "macOS-latest"
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

- checkout: self
submodules: true

- task: Bash@3
displayName: "Build and Test"
inputs:
filePath: "BuildAndTest.sh"
failOnStderr: true

- task: Bash@3
displayName: "Run BinSkim"
inputs:
targetType: "inline"
script: "dotnet bld/bin/x64_Release/netcoreapp3.1/binskim.dll analyze src/Test.FunctionalTests.BinSkim.Driver/BaselineTestData/macho.*"

0 comments on commit d78a031

Please sign in to comment.