Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable DML on Windows and CUDA on Linux for Node.js binding #19274

Merged
merged 6 commits into from
Feb 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,12 @@ stages:
displayName: 'Clean Agent Directories'
condition: always()

- stage: Nodejs_Packaging_CPU
- stage: Nodejs_Packaging
dependsOn:
- Linux_C_API_Packaging_CPU
- MacOS_C_API_Package_Publish
- Windows_Packaging_CPU_x64_${{ parameters.BuildVariant }}
fs-eire marked this conversation as resolved.
Show resolved Hide resolved
- Windows_CI_GPU_DML_Dev
- Windows_Packaging_CPU_arm64_${{ parameters.BuildVariant }}
condition: succeeded()
jobs:
Expand Down Expand Up @@ -565,7 +566,7 @@ stages:
- task: DownloadPipelineArtifact@0
displayName: 'Download Pipeline Artifact - Nodejs (Win x64)'
inputs:
artifactName: 'drop-onnxruntime-nodejs-win-x64'
artifactName: 'drop-onnxruntime-nodejs-win-x64-dml'
targetPath: '$(Build.BinariesDirectory)/nodejs-artifacts/win32/x64/'

- task: DownloadPipelineArtifact@0
Expand All @@ -591,6 +592,10 @@ stages:
inputs:
artifactName: 'drop-onnxruntime-nodejs-linux-x64'
targetPath: '$(Build.BinariesDirectory)/nodejs-artifacts/linux/x64/'
- script: |
dir
workingDirectory: '$(Build.BinariesDirectory)/nodejs-artifacts/win32/x64/'
displayName: 'List Nodejs artifacts from $(Build.BinariesDirectory)/nodejs-artifacts/win32/x64/'
fs-eire marked this conversation as resolved.
Show resolved Hide resolved

- task: DownloadPipelineArtifact@0
displayName: 'Download Pipeline Artifact - Nodejs (Linux aarch64)'
Expand Down Expand Up @@ -632,7 +637,7 @@ stages:
- task: CopyFiles@2
displayName: 'Copy nuget binaries to: $(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\x64\'
inputs:
SourceFolder: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo\nuget-artifacts\onnxruntime-win-x64\lib'
SourceFolder: '$(Build.BinariesDirectory)\nodejs-artifacts\win32\x64'
Contents: '*.dll'
TargetFolder: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\x64'
- task: CopyFiles@2
fs-eire marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading