2019-10-08 05:34:34 +02:00
|
|
|
## @file
|
|
|
|
# File templates/pr-gate-build-job.yml
|
|
|
|
#
|
|
|
|
# template file used to build supported packages.
|
|
|
|
#
|
|
|
|
# Copyright (c) Microsoft Corporation.
|
2020-12-03 11:27:32 +01:00
|
|
|
# Copyright (c) 2020 - 2021, ARM Limited. All rights reserved.<BR>
|
2019-10-08 05:34:34 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
##
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
tool_chain_tag: ''
|
|
|
|
vm_image: ''
|
|
|
|
arch_list: ''
|
|
|
|
|
|
|
|
# Build step
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
- job: Build_${{ parameters.tool_chain_tag }}
|
|
|
|
|
|
|
|
#Use matrix to speed up the build process
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
TARGET_MDE_CPU:
|
|
|
|
Build.Pkgs: 'MdePkg,UefiCpuPkg'
|
2020-01-22 19:20:44 +01:00
|
|
|
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
|
2019-10-08 05:34:34 +02:00
|
|
|
TARGET_MDEMODULE_DEBUG:
|
|
|
|
Build.Pkgs: 'MdeModulePkg'
|
2020-01-22 19:20:44 +01:00
|
|
|
Build.Targets: 'DEBUG,NOOPT'
|
2019-10-08 05:34:34 +02:00
|
|
|
TARGET_MDEMODULE_RELEASE:
|
|
|
|
Build.Pkgs: 'MdeModulePkg'
|
|
|
|
Build.Targets: 'RELEASE,NO-TARGET'
|
|
|
|
TARGET_NETWORK:
|
2020-10-06 03:13:30 +02:00
|
|
|
Build.Pkgs: 'NetworkPkg,RedfishPkg'
|
2019-10-08 05:34:34 +02:00
|
|
|
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
|
|
|
|
TARGET_OTHER:
|
2020-12-03 11:27:32 +01:00
|
|
|
Build.Pkgs: 'PcAtChipsetPkg,ShellPkg,StandaloneMmPkg'
|
2019-10-08 05:34:34 +02:00
|
|
|
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
|
2020-01-22 19:20:44 +01:00
|
|
|
TARGET_FMP_FAT_TEST:
|
2020-08-07 19:29:35 +02:00
|
|
|
Build.Pkgs: 'FmpDevicePkg,FatPkg,UnitTestFrameworkPkg,DynamicTablesPkg'
|
2020-01-22 19:20:44 +01:00
|
|
|
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
|
2019-10-08 05:34:34 +02:00
|
|
|
TARGET_CRYPTO:
|
|
|
|
Build.Pkgs: 'CryptoPkg'
|
2020-10-09 00:37:47 +02:00
|
|
|
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
|
2019-10-08 05:34:34 +02:00
|
|
|
TARGET_SECURITY:
|
|
|
|
Build.Pkgs: 'SecurityPkg'
|
|
|
|
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
|
2020-04-08 07:08:46 +02:00
|
|
|
TARGET_PLATFORMS:
|
|
|
|
# For Platforms only check code. Leave it to Platform CI
|
|
|
|
# to build them.
|
|
|
|
Build.Pkgs: 'ArmVirtPkg,EmulatorPkg,OvmfPkg'
|
|
|
|
Build.Targets: 'NO-TARGET'
|
2019-10-08 05:34:34 +02:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: ${{ parameters.vm_image }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: pr-gate-steps.yml
|
|
|
|
parameters:
|
|
|
|
tool_chain_tag: ${{ parameters.tool_chain_tag }}
|
|
|
|
build_pkgs: $(Build.Pkgs)
|
|
|
|
build_targets: $(Build.Targets)
|
|
|
|
build_archs: ${{ parameters.arch_list }}
|
|
|
|
|
|
|
|
- job: FINISHED
|
|
|
|
dependsOn: Build_${{ parameters.tool_chain_tag }}
|
|
|
|
condition: succeeded()
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
|
|
|
- script: |
|
|
|
|
echo FINISHED
|
|
|
|
sleep 10
|
|
|
|
displayName: FINISHED
|
|
|
|
|
|
|
|
- job: FAILED
|
|
|
|
dependsOn: Build_${{ parameters.tool_chain_tag }}
|
|
|
|
condition: failed()
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
|
|
|
- script: |
|
|
|
|
echo FAILED
|
|
|
|
sleep 10
|
|
|
|
displayName: FAILED
|