summaryrefslogtreecommitdiff
path: root/.azurepipelines
diff options
context:
space:
mode:
authorSean Brogan <sean.brogan@microsoft.com>2020-04-01 00:14:37 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-04-07 12:07:15 +0000
commite1fbff3ded87704fb0086f9b5fb368080eb4db51 (patch)
tree20a0e05c4d276784c7bd7106b1d836f71bdc7317 /.azurepipelines
parentaab6a9c9aebb1f6614e72e98bdf6b5af93a43527 (diff)
downloadedk2-e1fbff3ded87704fb0086f9b5fb368080eb4db51.zip
edk2-e1fbff3ded87704fb0086f9b5fb368080eb4db51.tar.gz
edk2-e1fbff3ded87704fb0086f9b5fb368080eb4db51.tar.bz2
.azurepipelines: Update CI steps
Update CI steps to build base tools after setup and update, as basetools might have dependencies that need to be resolved. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to '.azurepipelines')
-rw-r--r--.azurepipelines/templates/pr-gate-steps.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/templates/pr-gate-steps.yml
index a969661..3fcc1e8 100644
--- a/.azurepipelines/templates/pr-gate-steps.yml
+++ b/.azurepipelines/templates/pr-gate-steps.yml
@@ -39,11 +39,6 @@ steps:
arguments: -c .pytool/CISettings.py -p ${{ parameters.build_pkgs }} --pr-target origin/$(System.PullRequest.targetBranch) --output-csv-format-string "##vso[task.setvariable variable=pkgs_to_build;isOutpout=true]{pkgcsv}" --output-count-format-string "##vso[task.setvariable variable=pkg_count;isOutpout=true]{pkgcount}"
condition: eq(variables['Build.Reason'], 'PullRequest')
-# build basetools
-- template: basetools-build-steps.yml
- parameters:
- tool_chain_tag: ${{ parameters.tool_chain_tag }}
-
# install spell check prereqs
- template: spell-check-prereq-steps.yml
@@ -62,6 +57,13 @@ steps:
arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ parameters.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}}
condition: and(gt(variables.pkg_count, 0), succeeded())
+# build basetools
+# do this after setup and update so that code base dependencies
+# are all resolved.
+- template: basetools-build-steps.yml
+ parameters:
+ tool_chain_tag: ${{ parameters.tool_chain_tag }}
+
- task: CmdLine@1
displayName: Build and Test ${{ parameters.build_pkgs }} ${{ parameters.build_archs}}
inputs: