-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add Date-time stamp in NuGet package versioning for appropriate ordering of the packages #1951
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
fc4f6f9
upgraded test and sample projects to netcoreapp2.1
shahasad db34321
Merge branch 'master' of https://github.com/Microsoft/onnxruntime int…
shahasad 0625d41
reverted fc4f6f9d717b45d862e80217eda30b63fa9d5f02
shahasad b34b04c
modified the nuget package versioning scheme to conform with semver 2…
shahasad 6b709f7
Merge branch 'master' of https://github.com/Microsoft/onnxruntime int…
shahasad 46e8037
fix typo in yml
shahasad b19fa35
fix formatting/indentation in the yml
shahasad f185248
fix formatting in yml
shahasad c940f0f
fix formatting in yml
shahasad ac81ddf
fix working dir in yml
shahasad ad63ca1
use semver 1.0
shahasad f446201
some cleanup
shahasad 85afcd7
some fixes in the batch scripts
shahasad 1f77a82
Merge branch 'master' of https://github.com/Microsoft/onnxruntime int…
shahasad b44bcf5
some fixes on the scripts regarding the version variable
shahasad acde40a
Merge branch 'master' of https://github.com/Microsoft/onnxruntime int…
shahasad 2fec7cc
fix download test data in test_win.yml
shahasad b298f01
fix download test data in test_win.yml
shahasad fc0e3fc
fix in windows version number setup
shahasad 30d86ba
try again, added some log
shahasad 4c1ac51
add dir and pwd in the log, modified path name to use backslash inste…
shahasad 7c3f3f0
add more log
shahasad c13063e
use ! instead of % in variables
shahasad 6f93004
cleaned up debug logs. temporarily removed the master condition for t…
shahasad 5136eee
use UtcNow
shahasad 62c3df9
add back master condition for publish
shahasad 69dc398
Merge branch 'master' of https://github.com/Microsoft/onnxruntime int…
shahasad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
28 changes: 28 additions & 0 deletions
28
...ci_build/github/azure-pipelines/nuget/templates/get-nuget-package-version-as-variable.yml
This file contains hidden or 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,28 @@ | ||
| 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*.nupkg) do ( | ||
| set filename=%%~ni | ||
| set ortversion=!filename:~25! | ||
| @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*.nupkg) | ||
| filename=${filenamewithext%.*} | ||
| ortversion=${filename:25} | ||
| echo "##vso[task.setvariable variable=NuGetPackageVersionNumber;]$ortversion" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ steps: | |
|
|
||
| - task: CmdLine@2 | ||
| displayName: 'Post binary sizes to the dashboard database using command line' | ||
| continueOnError: true # Recently the database connection is failing, so ignoring the error until that is fixed | ||
| inputs: | ||
| script: | | ||
| echo changing directory to artifact download path | ||
|
|
@@ -33,7 +34,7 @@ steps: | |
| echo processing %%~ni.nupkg | ||
| copy %%~ni.nupkg %%~ni.zip | ||
| echo copied to zip | ||
| echo listing lib files in the zip | ||
| echo listing lib files in the zip | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: extra space |
||
| REM use a single .csv file to put the data | ||
| echo os,arch,build_config,size > binary_size_data.txt | ||
| 7z.exe l -slt %%~ni.zip runtimes\linux-x64\native\libonnxruntime.so | findstr /R /C:"^Size = [0-9]*" | for /F "tokens=3" %%a in ('more') do if not "%%a" == "" echo linux,x64,openmp,%%a >> binary_size_data.txt | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.