onnxruntime/tools/ci_build/github/azure-pipelines/templates/nodejs-artifacts-package-and-publish-steps-windows.yml

27 lines
818 B
YAML

# sets up common build tools for the windows build machines before build
parameters:
- name: arch
type: string
- name: DoEsrp
displayName: Run code sign tasks? Must be true if you are doing an Onnx Runtime release.
type: boolean
default: true
- name: artifactName
type: string
default: ''
steps:
- template: win-esrp-dll.yml
parameters:
FolderPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.arch }}'
DisplayName: 'ESRP - Sign Node.js binding binaries'
DoEsrp: ${{parameters.DoEsrp}}
Pattern: '*.node'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.arch }}\onnxruntime_binding.node'
artifactName: '${{parameters.artifactName}}'