summaryrefslogtreecommitdiffstats
path: root/.azurepipelines/templates/basetools-build-steps.yml
blob: a72758bc3395700b8c64e61c034f4ab0518df021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## @file
# File templates/basetools-build-job.yml
#
# template file to build basetools
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
parameters:
  tool_chain_tag: ''

steps:
- task: CmdLine@1
  displayName: Build Base Tools from source
  inputs:
    filename: python
    arguments: BaseTools/Edk2ToolsBuild.py -t ${{ parameters.tool_chain_tag }}
  condition: and(gt(variables.pkg_count, 0), succeeded())

- task: CopyFiles@2
  displayName: "Copy base tools build log"
  inputs:
    targetFolder: '$(Build.ArtifactStagingDirectory)'
    SourceFolder: 'BaseTools/BaseToolsBuild'
    contents: |
      BASETOOLS_BUILD*.*
    flattenFolders: true
  condition: and(gt(variables.pkg_count, 0), succeededOrFailed())