From 7bb868491f428e28be3b9f2322615828ac099402 Mon Sep 17 00:00:00 2001 From: Ajan Zhong Date: Mon, 23 Dec 2024 11:05:35 +0800 Subject: [PATCH] azurepipiline: Add Archlist for target Signed-off-by: Ajan Zhong --- .azurepipelines/templates/pr-gate-build-job.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.azurepipelines/templates/pr-gate-build-job.yml b/.azurepipelines/templates/pr-gate-build-job.yml index 4d13f251970e..b1dc0eda7f4e 100644 --- a/.azurepipelines/templates/pr-gate-build-job.yml +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -64,6 +64,7 @@ jobs: TARGET_UEFIPAYLOAD: Build.Pkgs: 'UefiPayloadPkg' Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' + Build.Archlist: "IA32,X64" TARGET_PLATFORMS: # For Platforms only check code. Leave it to Platform CI # to build them. @@ -85,7 +86,13 @@ jobs: tool_chain_tag: ${{ parameters.tool_chain_tag }} build_pkgs: $(Build.Pkgs) build_targets: $(Build.Targets) - build_archs: ${{ parameters.arch_list }} + + # Use the condition to set `build_archs` based on `Build.Archlist` + ${{ if not(eq($(Build.Archlist), "")) }}: + build_archs: ${{ $(Build.Archlist) }} + ${{ else }} + build_archs: ${{ "IA32,X64,ARM,AARCH64,RISCV64,LOONGARCH64" }} + usePythonVersion: ${{ parameters.usePythonVersion }} extra_install_step: ${{ parameters.extra_install_step }}