-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding java build and packaging stage to cuda-packaging-pipeline.yml (#…
…20812) ### Description Adding java build/packaging stage to `cuda-packaging-pipeline.yml` ### Motivation and Context This way we can enable publishing the Java Cuda 12 along with Nuget CUDA 12
- Loading branch information
Showing
3 changed files
with
40 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tools/ci_build/github/azure-pipelines/stages/download-java-tools-stage.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
stages: | ||
- stage: Download_Java_Tools | ||
dependsOn: [] | ||
jobs: | ||
- job: Download_Java_Tools | ||
pool: | ||
name: 'onnxruntime-Ubuntu2204-AMD-CPU' | ||
steps: | ||
- checkout: none | ||
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3 | ||
displayName: 'Clean Agent Directories' | ||
condition: always() | ||
- task: CmdLine@2 | ||
displayName: Download Java Tools | ||
inputs: | ||
script: | | ||
mkdir -p java-tools | ||
pushd java-tools | ||
wget --tries=3 https://oss.sonatype.org/service/local/repositories/releases/content/org/junit/platform/junit-platform-console-standalone/1.6.2/junit-platform-console-standalone-1.6.2.jar -P ./ | ||
wget --tries=3 https://oss.sonatype.org/service/local/repositories/releases/content/com/google/protobuf/protobuf-java/3.21.7/protobuf-java-3.21.7.jar -P ./ | ||
popd | ||
workingDirectory: '$(Agent.TempDirectory)' | ||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish Pipeline Java Tools Artifact' | ||
inputs: | ||
targetPath: '$(Agent.TempDirectory)/java-tools' | ||
artifact: 'onnxruntime-java-tools' | ||
- template: ../templates/component-governance-component-detection-steps.yml | ||
parameters : | ||
condition : 'succeeded' |