From 5cb6bfe151ce68fd320558021679d90dfc8cecea Mon Sep 17 00:00:00 2001 From: David Dixon <165835255+davidd-amd@users.noreply.github.com> Date: Thu, 16 Oct 2025 07:26:06 -0600 Subject: [PATCH] Add yaml-cpp to dependencies --- .azuredevops/dependencies/yamlcpp.yml | 66 +++++++++++++++++++++++++++ .azuredevops/tag-builds/yaml-cpp.yml | 24 ++++++++++ 2 files changed, 90 insertions(+) create mode 100644 .azuredevops/dependencies/yamlcpp.yml create mode 100644 .azuredevops/tag-builds/yaml-cpp.yml diff --git a/.azuredevops/dependencies/yamlcpp.yml b/.azuredevops/dependencies/yamlcpp.yml new file mode 100644 index 000000000..c722b70f2 --- /dev/null +++ b/.azuredevops/dependencies/yamlcpp.yml @@ -0,0 +1,66 @@ +parameters: +- name: checkoutRepo + type: string + default: 'self' +- name: checkoutRef + type: string + default: '' +- name: yamlcppVersion + type: string + default: '' +- name: aptPackages + type: object + default: + - cmake + - git + - ninja-build + +- name: jobMatrix + type: object + default: + buildJobs: + - { os: ubuntu2204, packageManager: apt} + - { os: almalinux8, packageManager: dnf} + +jobs: +- ${{ each job in parameters.jobMatrix.buildJobs }}: + - job: yamlcpp_${{ job.os }} + variables: + - group: common + - template: /.azuredevops/variables-global.yml + pool: + vmImage: 'ubuntu-22.04' + ${{ if eq(job.os, 'almalinux8') }}: + container: + image: rocmexternalcicd.azurecr.io/manylinux228:latest + endpoint: ContainerService3 + workspace: + clean: all + steps: + - checkout: none + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml + parameters: + aptPackages: ${{ parameters.aptPackages }} + packageManager: ${{ job.packageManager }} + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml + - task: Bash@3 + displayName: Clone yaml-cpp ${{ parameters.yamlcppVersion }} + inputs: + targetType: inline + script: git clone https://github.com/jbeder/yaml-cpp.git -b ${{ parameters.yamlcppVersion }} + workingDirectory: $(Agent.BuildDirectory) + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml + parameters: + os: ${{ job.os }} + cmakeBuildDir: $(Agent.BuildDirectory)/yaml-cpp/build + cmakeSourceDir: $(Agent.BuildDirectory)/yaml-cpp + useAmdclang: false + extraBuildFlags: >- + -DCMAKE_BUILD_TYPE=Release + -DYAML_CPP_BUILD_TOOLS=OFF + -DYAML_BUILD_SHARED_LIBS=OFF + -DYAML_CPP_INSTALL=ON + -GNinja + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml + parameters: + os: ${{ job.os }} diff --git a/.azuredevops/tag-builds/yaml-cpp.yml b/.azuredevops/tag-builds/yaml-cpp.yml new file mode 100644 index 000000000..86a767df5 --- /dev/null +++ b/.azuredevops/tag-builds/yaml-cpp.yml @@ -0,0 +1,24 @@ +variables: +- group: common +- template: /.azuredevops/variables-global.yml + +parameters: +- name: yamlcppVersion + type: string + default: "0.8.0" + +resources: + repositories: + - repository: pipelines_repo + type: github + endpoint: ROCm + name: ROCm/ROCm + +trigger: none +pr: none + +jobs: + - template: ${{ variables.CI_DEPENDENCIES_PATH }}/yamlcpp.yml + parameters: + yamlcppVersion: ${{ parameters.yamlcppVersion }} +