Files
rocm-systems/.azuredevops/rocm-ci.yml
T
amd-jmacaran cd4ed0916b SWDEV-458516 - External CI: Align with branch naming convention.
Change-Id: Ie1d874742b804f02ceda68064fa54f5d59c092b7
2024-08-13 11:47:11 -04:00

72 lines
1.7 KiB
YAML

resources:
repositories:
- repository: pipelines_repo
type: github
endpoint: ROCm
name: ROCm/ROCm
- repository: matching_repo
type: github
endpoint: ROCm
name: ROCm/HIP
ref: amd-staging
- repository: hipother_repo
type: github
endpoint: ROCm
name: ROCm/hipother
ref: amd-staging
pipelines:
- pipeline: hip_pipeline
source: \HIP
trigger:
branches:
include:
- amd-staging
- amd-mainline
- pipeline: hipother_pipeline
source: \hipother
trigger:
branches:
include:
- amd-staging
- amd-mainline
variables:
- group: common
- template: /.azuredevops/variables-global.yml@pipelines_repo
trigger:
batch: true
branches:
include:
- amd-staging
- amd-mainline
paths:
exclude:
- CODEOWNERS
- LICENCE
- '**/*.md'
pr:
autoCancel: true
branches:
include:
- amd-staging
- amd-mainline
paths:
exclude:
- CODEOWNERS
- LICENCE
- '**/*.md'
drafts: false
jobs:
# if the build reason is a resource trigger, it means trigger is HIP or hipother repo build
# HIP/hipother repo build would have just built runtime, just copy their build products
# this is to ensure clr has latest good package for combined-packaging jobs
# combined-packaging jobs only have to look at clr pipeline for latest runtime
# to remove logic of comparing build products from both clr, hip, hipother triggers
- ${{ if eq(variables['Build.Reason'], 'ResourceTrigger') }}:
- template: ${{ variables.CI_COMPONENT_PATH }}/copyHIP.yml@pipelines_repo
- ${{ if ne(variables['Build.Reason'], 'ResourceTrigger') }}:
- template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml@pipelines_repo