Skip to content

Commit

Permalink
Test for platform CI in UPL
Browse files Browse the repository at this point in the history
Signed-off-by: DunTan <[email protected]>
  • Loading branch information
td36 committed Aug 17, 2021
1 parent 2d9a168 commit 4723b3a
Show file tree
Hide file tree
Showing 5 changed files with 643 additions and 0 deletions.
87 changes: 87 additions & 0 deletions UefiPayloadPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
## @file
# Azure Pipeline build file for building a platform.
#
# Platform: UefiPayloadPkg
# OS: Ubuntu
# Toolchain: GCC5
#
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2020, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
- stable/*
pr:
- master
- stable/*
jobs:
- job: Platform_CI
variables:
package: 'UefiPayloadPkg'
vm_image: 'ubuntu-18.04'
should_run: false
run_flags: "MAKE_STARTUP_NSH=TRUE"

#Use matrix to speed up the build process
strategy:
matrix:
UefiPayloadPkg_X64_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_NOOPT:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "NOOPT"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_FULL_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_FULL_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_FULL_NOOPT:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "NOOPT"
Run.Flags: $(run_flags)
Run: $(should_run)

workspace:
clean: all

pool:
vmImage: $(vm_image)

steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
tool_chain_tag: GCC5
build_pkg: $(package)
build_target: $(Build.Target)
build_arch: $(Build.Arch)
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
94 changes: 94 additions & 0 deletions UefiPayloadPkg/PlatformCI/.azurepipelines/Windows-VS2019.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
## @file
# Azure Pipeline build file for building a platform.
#
# Platform: UefiPayloadPkg
# OS: Windows
# Toolchain: VS2019
#
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2020, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
- stable/*
pr:
- master
- stable/*

jobs:
- job: Platform_CI
variables:
package: 'UefiPayloadPkg'
vm_image: 'windows-latest'
should_run: true
run_flags: "MAKE_STARTUP_NSH=TRUE"
Path_LLVM: "c:\LLVM\bin"
Module_name: "$(package)/UefiPayloadEntry/UniversalPayloadEntry.inf"
CLANG_BIN: ""

#Use matrix to speed up the build process
strategy:
matrix:
UefiPayloadPkg_X64_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_UNIVERSAL_PAYLOAD=TRUE BLD_*_EMU_VARIABLE_ENABLE=FALSE BLD_*_DISABLE_RESET_SYSTEM=TRUE BLD_*_SERIAL_DRIVER_ENABLE=FALSE BLD_*_MAX_LOGICAL_PROCESSORS=1024 BLD_*_MAX_SIZE_NON_POPULATE_CAPSULE=0x2100000 BLD_*_RTC_INDEX_REGISTER=0x74 BLD_*_RTC_TARGET_REGISTER=0x75"
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
Build.ToolChain: "VS2019"
UefiPayloadPkg_X64_DEBUG_Entry:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_UNIVERSAL_PAYLOAD=TRUE BLD_*_EMU_VARIABLE_ENABLE=FALSE BLD_*_DISABLE_RESET_SYSTEM=TRUE BLD_*_SERIAL_DRIVER_ENABLE=FALSE BLD_*_MAX_LOGICAL_PROCESSORS=1024 BLD_*_MAX_SIZE_NON_POPULATE_CAPSULE=0x2100000 BLD_*_RTC_INDEX_REGISTER=0x74 BLD_*_RTC_TARGET_REGISTER=0x75 BUILDMODULE=$(Module_name) CLANG_BIN=$(Path_LLVM)"
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
Build.ToolChain: "VS2019"

workspace:
clean: all

pool:
vmImage: $(vm_image)

steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
tool_chain_tag: $(Build.ToolChain)
build_pkg: $(package)
build_target: $(Build.Target)
build_arch: $(Build.Arch)
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
extra_install_step:
- powershell: choco install llvm --version=11.0.0; Write-Host "##vso[task.prependpath]c:\LLVM"
displayName: Install LLVM and Set LLVM on path # friendly name displayed in the UI
condition: and(gt(variables.pkg_count, 0), succeeded())
# Change the build toolchain






- bash: echo "##vso[task.setvariable variable=parameters.tool_chain_tag]CLANGDWARF"





- script: |
echo $(TOOL_CHAIN_TAG)
echo $(CLANG_BIN)
echo $(BUILDMODULE)
echo $(tool_chain_tag)
echo ${{parameters.tool_chain_tag}}
130 changes: 130 additions & 0 deletions UefiPayloadPkg/PlatformCI/.azurepipelines/backup_full_vs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
## @file
# Azure Pipeline build file for building a platform.
#
# Platform: UefiPayloadPkg
# OS: Windows
# Toolchain: VS2019
#
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2020, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
- stable/*
pr:
- master
- stable/*

jobs:
- job: Platform_CI
variables:
package: 'UefiPayloadPkg'
vm_image: 'windows-latest'
should_run: true
run_flags: "MAKE_STARTUP_NSH=TRUE"

#Use matrix to speed up the build process
strategy:
matrix:
UefiPayloadPkg_X64_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_NOOPT:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "NOOPT"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_IA32_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "IA32 "
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_IA32_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "IA32 "
Build.Flags: ""
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_IA32_NOOPT:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "IA32 "
Build.Flags: ""
Build.Target: "NOOPT"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_FULL_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_UNIVERSAL_PAYLOAD=TRUE BLD_*_EMU_VARIABLE_ENABLE=FALSE BLD_*_DISABLE_RESET_SYSTEM=TRUE BLD_*_SERIAL_DRIVER_ENABLE=FALSE BLD_*_MAX_LOGICAL_PROCESSORS=1024 BLD_*_MAX_SIZE_NON_POPULATE_CAPSULE=0x2100000 BLD_*_RTC_INDEX_REGISTER=0x74 BLD_*_RTC_TARGET_REGISTER=0x75"
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_FULL_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_UNIVERSAL_PAYLOAD=TRUE BLD_*_EMU_VARIABLE_ENABLE=FALSE BLD_*_DISABLE_RESET_SYSTEM=TRUE BLD_*_SERIAL_DRIVER_ENABLE=FALSE BLD_*_MAX_LOGICAL_PROCESSORS=1024 BLD_*_MAX_SIZE_NON_POPULATE_CAPSULE=0x2100000 BLD_*_RTC_INDEX_REGISTER=0x74 BLD_*_RTC_TARGET_REGISTER=0x75"
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_X64_FULL_NOOPT:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "NOOPT"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_IA32_FULL_DEBUG:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "IA32"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_IA32_FULL_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "IA32"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Run: $(should_run)
UefiPayloadPkg_IA32_FULL_NOOPT:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "IA32"
Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
Build.Target: "NOOPT"
Run.Flags: $(run_flags)
Run: $(should_run)

workspace:
clean: all

pool:
vmImage: $(vm_image)

steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
tool_chain_tag: VS2019
build_pkg: $(package)
build_target: $(Build.Target)
build_arch: $(Build.Arch)
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
Loading

0 comments on commit 4723b3a

Please sign in to comment.