Upgrade binskim and fix an error in nuget packaging pipeline (#17340)

### Description
Upgrade binskim and fix an error in nuget packaging pipeline.
This commit is contained in:
Changming Sun 2023-08-30 07:52:06 -07:00 committed by GitHub
parent 21ae86e405
commit 71da0824f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -19,6 +19,9 @@ parameters:
- name: OnnxruntimeNodejsBindingArch
type: string
values:
- arm64
- x64
- name: PoolName
type: string

View file

@ -12,10 +12,10 @@ steps:
debugMode: false
continueOnError: true
- task: BinSkim@3
- task: BinSkim@4
displayName: 'Run BinSkim'
inputs:
arguments: 'analyze $(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo\*.dll --recurse --verbose'
AnalyzeTargetGlob: '+:file|$(Build.ArtifactStagingDirectory)\**\*.dll;-:file|$(Build.ArtifactStagingDirectory)\**\DirectML.dll'
continueOnError: true
- task: DeleteFiles@1

View file

@ -23,6 +23,9 @@ parameters:
type: string
default: ''
# We only have CUDA/TRT on x64. We do not have a build for CUDA/TRT for ARM64.
# Therefore this file does not have an `OnnxruntimeNodejsBindingArch` parameter
stages:
- stage: Linux_C_API_Packaging_GPU_TensorRT_x64
dependsOn: []
@ -70,7 +73,7 @@ stages:
- ${{ if eq(parameters.buildNodejs, 'true') }}:
- template: nodejs-artifacts-package-and-publish-steps-posix.yml
parameters:
arch: '${{parameters.OnnxruntimeNodejsBindingArch}}'
arch: 'x64'
os: 'linux'
artifactName: 'drop-onnxruntime-nodejs-linux-x64-tensorrt'