mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* Add onnxruntime_providers_shared.dll into gpu nuget package * Modify for test * Temporarily remove for test * Modify for test * Modify for test * Test packging Windows combined GPU * Test packging Windows combined GPU * Test packging Windows combined GPU * Test packging Windows combined GPU * modify for test * modify for test * fix bug * Modify for test * Modify for test * Modify for test * Modify for test * Modify for test * Modify for test * Modify for test * Modify for test * Prepare for PR * Prepare for PR * Code refactor * Rename proper Artifact name * Rename intermediate Artifact names * Revert Artifact Names * Rename Artifact Names * Modify Artifact name * Modify Artifact name * Modify Artifact name * Update Java package * Update Java package * fix bug to change artifact name * Fix bug for the wrong file path * Fix no fetching correct artifact and test * temporarily modify for test * undo the change for test
19 lines
1.2 KiB
PowerShell
19 lines
1.2 KiB
PowerShell
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
Write-Output "Start"
|
|
dir
|
|
Copy-Item -Path $Env:BUILD_BINARIESDIRECTORY\java-artifact\onnxruntime-java-linux-x64\ai\onnxruntime\native\linux-x64\libonnxruntime_providers_cuda.so -Destination $Env:BUILD_BINARIESDIRECTORY\java-artifact\onnxruntime-java-linux-x64-tensorrt\ai\onnxruntime\native\linux-x64
|
|
pushd onnxruntime-java-linux-x64-tensorrt
|
|
Write-Output "Run 7z"
|
|
7z a $Env:BUILD_BINARIESDIRECTORY\java-artifact\onnxruntime-java-win-x64\testing.jar libcustom_op_library.so
|
|
Remove-Item -Path libcustom_op_library.so
|
|
7z a $Env:BUILD_BINARIESDIRECTORY\java-artifact\onnxruntime-java-win-x64\onnxruntime-$Env:ONNXRUNTIMEVERSION.jar .
|
|
popd
|
|
pushd onnxruntime-java-win-x64
|
|
ren onnxruntime-$Env:ONNXRUNTIMEVERSION.jar onnxruntime_gpu-$Env:ONNXRUNTIMEVERSION.jar
|
|
ren onnxruntime-$Env:ONNXRUNTIMEVERSION-javadoc.jar onnxruntime_gpu-$Env:ONNXRUNTIMEVERSION-javadoc.jar
|
|
ren onnxruntime-$Env:ONNXRUNTIMEVERSION-sources.jar onnxruntime_gpu-$Env:ONNXRUNTIMEVERSION-sources.jar
|
|
ren onnxruntime-$Env:ONNXRUNTIMEVERSION.pom onnxruntime_gpu-$Env:ONNXRUNTIMEVERSION.pom
|
|
popd
|