mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
* Initial commit * More changes * More changes * More changes 3 * More changes 4 * More changes 5 * More changes 5 * More changes 6 * More changes 7 * More changes 8 * Remove C# ifdefs * More changes 10 * More changes 11 * YAML changes for other release pipelines * Add release notes metadata * Props and Targets change * Add CSHarp proj * More changes 12 * More changes * Minor fix * Minor fix * Fix yaml * Some missing logic for winml * Minor update * Fix casing for winmd file * Fix casing * Add targets and props for managed section into native nuget * revert file * a
27 lines
1 KiB
YAML
27 lines
1 KiB
YAML
parameters:
|
|
packageFolder: $(Build.ArtifactStagingDirectory)
|
|
|
|
steps:
|
|
- task: CmdLine@2
|
|
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
|
displayName: 'Extract version number from the NuPkg file, Windows VMs'
|
|
inputs:
|
|
workingDirectory: '${{ parameters.packageFolder }}'
|
|
script: |
|
|
SETLOCAL EnableDelayedExpansion
|
|
FOR /R %%i IN (Microsoft.ML.OnnxRuntime.Managed*.nupkg) do (
|
|
set filename=%%~ni
|
|
set ortversion=!filename:~33!
|
|
@echo ortversion is !ortversion!
|
|
@echo ##vso[task.setvariable variable=NuGetPackageVersionNumber;]!ortversion!
|
|
)
|
|
- task: CmdLine@2
|
|
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
|
|
displayName: 'Extract version number from the NuPkg file, Unix VMs'
|
|
inputs:
|
|
workingDirectory: '${{ parameters.packageFolder }}'
|
|
script: |
|
|
filenamewithext=$(ls Microsoft.ML.OnnxRuntime.Managed*nupkg)
|
|
filename=${filenamewithext%.*}
|
|
ortversion=${filename:33}
|
|
echo "##vso[task.setvariable variable=NuGetPackageVersionNumber;]$ortversion"
|