microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.pipelines/nuget.yml
56lines · modecode
| 1 | parameters: |
| 2 | - name: DoCompliance |
| 3 | displayName: Run Compliance Tasks? |
| 4 | type: boolean |
| 5 | default: true |
| 6 | |
| 7 | - name: DoEsrp |
| 8 | displayName: Run code sign tasks? Must be true if you are doing an OnnxRuntime extensions release. |
| 9 | type: boolean |
| 10 | default: true |
| 11 | |
| 12 | - name: IsReleaseBuild |
| 13 | displayName: Is this a release build? Set it to true if you are doing an OnnxRuntime extensions release. |
| 14 | type: boolean |
| 15 | default: false |
| 16 | |
| 17 | - name: IsDummyPackage |
| 18 | displayName: Is this a build of Microsoft.ML.OnnxRuntime.Extensions.Dummy package that has no operators? |
| 19 | type: boolean |
| 20 | default: false |
| 21 | |
| 22 | - name: NugetVersionSuffix |
| 23 | displayName: Update nuget version suffix (e.g. alpha/beta/rc, only if publishing to nuget.org, otherwise leave as "none"). |
| 24 | type: string |
| 25 | default: none |
| 26 | |
| 27 | trigger: |
| 28 | branches: |
| 29 | exclude: |
| 30 | - "*" |
| 31 | |
| 32 | pr: |
| 33 | branches: |
| 34 | include: |
| 35 | - "*" |
| 36 | |
| 37 | stages: |
| 38 | - ${{ if eq(parameters.IsDummyPackage, false) }}: |
| 39 | - template: templates/build-package-for-nuget.yml |
| 40 | parameters: |
| 41 | DoCompliance: ${{ parameters.DoCompliance }} |
| 42 | DoEsrp: ${{ parameters.DoEsrp }} |
| 43 | IsReleaseBuild: ${{ parameters.IsReleaseBuild }} |
| 44 | NugetVersionSuffix: ${{ parameters.NugetVersionSuffix }} |
| 45 | |
| 46 | - ${{ else }}: |
| 47 | - template: templates/build-package-for-nuget.yml |
| 48 | parameters: |
| 49 | DoCompliance: ${{ parameters.DoCompliance }} |
| 50 | DoEsrp: ${{ parameters.DoEsrp }} |
| 51 | IsReleaseBuild: ${{ parameters.IsReleaseBuild }} |
| 52 | NugetVersionSuffix: ${{ parameters.NugetVersionSuffix }} |
| 53 | IsDummyPackage: true |
| 54 | # set flags to do a build with no operators for the dummy package |
| 55 | OperatorSelectionFlags: '' |
| 56 | AdditionalBuildFlags: '--include_ops_by_config ./tools/ci_build/no_ops.config --skip_tests --cmake_extra_defines OCOS_ENABLE_CTEST=OFF' |
| 57 | |