From d7d1e013d0e128ebe7f48d74390c06b53fcf1942 Mon Sep 17 00:00:00 2001 From: amd-jmacaran Date: Tue, 23 Apr 2024 23:32:06 -0400 Subject: [PATCH] SWDEV-458516 - Add support for external CI builds using Azure Pipelines Change-Id: Iedd6290a813d6e43a4350709484f78e05b08adc8 --- .azuredevops/rocm-ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .azuredevops/rocm-ci.yml diff --git a/.azuredevops/rocm-ci.yml b/.azuredevops/rocm-ci.yml new file mode 100644 index 0000000000..8af844a607 --- /dev/null +++ b/.azuredevops/rocm-ci.yml @@ -0,0 +1,56 @@ +resources: + repositories: + - repository: pipelines_repo + type: github + endpoint: ROCm + name: ROCm/ROCm + - repository: matching_repo + type: github + endpoint: ROCm + name: ROCm/HIP + ref: develop + pipelines: + - pipeline: hip_pipeline + source: HIP + trigger: + branches: + include: + - develop + +variables: +- group: common +- template: /.azuredevops/variables-global.yml@pipelines_repo + +trigger: + batch: true + branches: + include: + - develop + paths: + exclude: + - CODEOWNERS + - LICENCE + - '**/*.md' + +pr: + autoCancel: true + branches: + include: + - develop + paths: + exclude: + - CODEOWNERS + - LICENCE + - '**/*.md' + drafts: false + +jobs: +# if the build reason is a resource trigger, it means trigger is HIP repo build +# HIP 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 and hip 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