mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
### Description 1. Refactor the trigger rules generation. 2. Skip all doc changes in PR pipelines. ### Motivation and Context Make all trigger rules generated by running set-trigger-rules.py to reduce inconsistences. It's easily to make mistakes to copy&paste manually. For example: these 2 excludes are different, Why?4e6cec4d09/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml (L16-L18)4e6cec4d09/tools/ci_build/github/azure-pipelines/linux-gpu-ci-pipeline.yml (L27-L29)### Note All changes in workflow yamls are generated by code. Please review the **skip-js.yml, skip-docs.yml and set-trigger-rules.py**. @fs-eire, please double check the filter rules in skip-js.yml and the skipped workflows7023c2edff/tools/ci_build/set-trigger-rules.py (L14-L41)
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
##### start trigger Don't edit it manually, Please do edit set-trigger-rules.py ####
|
|
trigger:
|
|
branches:
|
|
include:
|
|
- main
|
|
- rel-*
|
|
paths:
|
|
exclude:
|
|
- docs/**
|
|
- README.md
|
|
- CONTRIBUTING.md
|
|
- BUILD.md
|
|
- 'js/web'
|
|
- 'onnxruntime/core/providers/js'
|
|
pr:
|
|
branches:
|
|
include:
|
|
- main
|
|
- rel-*
|
|
paths:
|
|
exclude:
|
|
- docs/**
|
|
- README.md
|
|
- CONTRIBUTING.md
|
|
- BUILD.md
|
|
- 'js/web'
|
|
- 'onnxruntime/core/providers/js'
|
|
#### end trigger ####
|
|
|
|
parameters:
|
|
- name: NpmPublish
|
|
displayName: 'NPM packages publish configuration'
|
|
type: string
|
|
values:
|
|
- 'nightly (@dev)'
|
|
- 'release candidate (@rc)'
|
|
- 'production (@latest)'
|
|
- 'custom'
|
|
default: 'nightly (@dev)'
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: manylinux # The name used to reference this repository in the checkout step
|
|
type: Github
|
|
endpoint: Microsoft
|
|
name: pypa/manylinux
|
|
ref: 5eda9aded5462201e6310105728d33016e637ea7
|
|
|
|
variables:
|
|
${{ if eq(parameters.NpmPublish, 'nightly (@dev)') }}:
|
|
NpmPackagingMode: 'dev'
|
|
${{ if eq(parameters.NpmPublish, 'release candidate (@rc)') }}:
|
|
NpmPackagingMode: 'rc'
|
|
${{ if eq(parameters.NpmPublish, 'production (@latest)') }}:
|
|
NpmPackagingMode: 'release'
|
|
${{ if eq(parameters.NpmPublish, 'custom') }}:
|
|
NpmPackagingMode: '$(VersionSuffix)'
|
|
|
|
stages:
|
|
- template: templates/react-native-ci.yml
|
|
parameters:
|
|
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
|
|
BuildConfig: 'Release'
|
|
PoolName: 'onnxruntime-Linux-CPU-For-Android-CI'
|