microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.pipelines/OneBranch.PullRequest.yml
58lines · modecode
| 1 | ################################################################################# |
| 2 | # OneBranch Pipelines - Official # |
| 3 | # This pipeline was created by EasyStart from a sample located at: # |
| 4 | # https://aka.ms/obpipelines/easystart/samples # |
| 5 | # Documentation: https://aka.ms/obpipelines # |
| 6 | # Yaml Schema: https://aka.ms/obpipelines/yaml/schema # |
| 7 | # Retail Tasks: https://aka.ms/obpipelines/tasks # |
| 8 | # Support: https://aka.ms/onebranchsup # |
| 9 | ################################################################################# |
| 10 | |
| 11 | trigger: none |
| 12 | |
| 13 | parameters: # parameters are shown up in ADO UI in a build queue time |
| 14 | - name: 'debug' |
| 15 | displayName: 'Enable debug output' |
| 16 | type: boolean |
| 17 | default: false |
| 18 | |
| 19 | - name: ExtraEnv |
| 20 | displayName: 'Extra env variable set to CIBW_ENVIRONMENT, in form of "A=1 B=2 C=3"' |
| 21 | type: string |
| 22 | default: 'ExampleEnvVar=ON' |
| 23 | |
| 24 | variables: |
| 25 | - template: /.pipelines/templates/onebranch-common-variables.yml@self |
| 26 | parameters: |
| 27 | debug: ${{ parameters.debug }} |
| 28 | |
| 29 | resources: |
| 30 | repositories: |
| 31 | - repository: templates |
| 32 | type: git |
| 33 | name: OneBranch.Pipelines/GovernedTemplates |
| 34 | ref: refs/heads/main |
| 35 | |
| 36 | extends: |
| 37 | template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates |
| 38 | parameters: |
| 39 | cloudvault: |
| 40 | enabled: false |
| 41 | globalSdl: |
| 42 | tsa: |
| 43 | enabled: false |
| 44 | binskim: |
| 45 | break: true # always break the build on binskim issues in addition to TSA upload |
| 46 | analyzeTargetGlob: '**\RelWithDebInfo\ortextensions.dll' # avoid scanning the 3rd party DLLs. |
| 47 | codeql: |
| 48 | compiled: |
| 49 | enabled: true |
| 50 | cadence: 10 |
| 51 | policheck: |
| 52 | break: true # always break the build on policheck issues. You can disable it by setting to 'false' |
| 53 | exclusionsFile: '$(REPOROOT)\.config\policheck_exclusions.xml' |
| 54 | |
| 55 | stages: |
| 56 | - template: /.pipelines/templates/onebranch-windows-build-stage.yml@self |
| 57 | parameters: |
| 58 | CibwEnv: ${{ parameters.ExtraEnv }} |
| 59 | |