-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Updated pipelines to only run CI and PR gates on release/202208 and release/202202 (#131)" Reverts commit 4bbdb46 to reduce conflicts with a new approach to pipeline management with YAML files. * Use Mu DevOps Updates this repo to use mu_devops for Azure Pipeline definitions. In order to centralize definitions and avoid build churn in individual Mu repos, some changes are made to allow build administrators to quickly adjust settings: - Toolchain, VM image, and architecture are controlled by build administrators through centralized variable groups - CI triggers, CI schedules, and PR triggers are controlled by build administrators within the individual pipeline UI settings - [ ] Breaking change? - Will this change break pre-existing builds or functionality without action being taken? **No** Verified in test pipelines. N/A - No developer integration required Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
- Loading branch information
1 parent
51ba5af
commit 571f7c2
Showing
19 changed files
with
218 additions
and
789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
## @file | ||
# Template file for generating a CLANGPDB build job matrix for the packages currently supported for | ||
# build in Mu Basecore. | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# Copyright (c) 2020 - 2021, ARM Limited. All rights reserved.<BR> | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
|
||
parameters: | ||
- name: arch_list | ||
displayName: Architectures (e.g. IA32, X64) | ||
type: string | ||
default: '' | ||
- name: extra_build_args | ||
displayName: Extra Build Command Arguments | ||
type: string | ||
default: '' | ||
- name: extra_install_step | ||
displayName: Extra Install Steps | ||
type: stepList | ||
default: | ||
- script: echo No extra steps provided | ||
- name: tool_chain_tag | ||
displayName: Tool Chain (e.g. VS2022) | ||
type: string | ||
default: '' | ||
- name: vm_image | ||
displayName: Virtual Machine Image (e.g. windows-latest) | ||
type: string | ||
default: 'windows-latest' | ||
|
||
jobs: | ||
|
||
- job: Build | ||
timeoutInMinutes: 120 | ||
# Use matrix to speed up the build process | ||
strategy: | ||
matrix: | ||
TARGET_MDE_CPU: | ||
Build.Pkgs: 'MdePkg,UefiCpuPkg' | ||
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' | ||
TARGET_MDEMODULE_DEBUG: | ||
Build.Pkgs: 'MdeModulePkg' | ||
Build.Targets: 'DEBUG,NOOPT' | ||
TARGET_MDEMODULE_RELEASE: | ||
Build.Pkgs: 'MdeModulePkg' | ||
Build.Targets: 'RELEASE,NO-TARGET' | ||
TARGET_NETWORK: | ||
Build.Pkgs: 'NetworkPkg' | ||
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' | ||
TARGET_OTHER: | ||
Build.Pkgs: 'PcAtChipsetPkg,ShellPkg,StandaloneMmPkg,BaseTools' | ||
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' | ||
TARGET_TEST_POLICY: | ||
Build.Pkgs: 'UnitTestFrameworkPkg,PolicyServicePkg' | ||
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' | ||
TARGET_CRYPTO: | ||
Build.Pkgs: 'CryptoPkg' | ||
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' | ||
|
||
workspace: | ||
clean: all | ||
|
||
pool: | ||
vmImage: ${{ parameters.vm_image }} | ||
|
||
steps: | ||
- template: Steps/PrGate.yml@mu_devops | ||
parameters: | ||
build_archs: ${{ parameters.arch_list }} | ||
build_pkgs: $(Build.Pkgs) | ||
build_targets: $(Build.Targets) | ||
do_ci_build: true | ||
do_ci_setup: false | ||
do_non_ci_build: false | ||
do_non_ci_setup: true | ||
do_pr_eval: true | ||
extra_build_args: ${{ parameters.extra_build_args }} | ||
extra_install_step: ${{ parameters.extra_install_step }} | ||
tool_chain_tag: ${{ parameters.tool_chain_tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,29 @@ | ||
## @file | ||
# Azure Pipeline build file for a build using ubuntu and CLANGPDB | ||
# Azure Pipeline build file for a build using Ubuntu and CLANGPDB. | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR> | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
# MU_CHANGE BEGIN | ||
trigger: | ||
- dev/* | ||
- release/* | ||
|
||
schedules: | ||
- cron: "30 9 * * 0,3" # Sun/Wed at 2:30AM Pacific | ||
displayName: Sun/Wed Build | ||
branches: | ||
include: | ||
- dev/* | ||
- release/* | ||
always: true # Always build, even if no changes | ||
resources: | ||
repositories: | ||
- repository: mu_devops | ||
type: github | ||
endpoint: microsoft | ||
name: microsoft/mu_devops | ||
ref: main | ||
|
||
pr: | ||
- dev/* | ||
- release/* | ||
# MU_CHANGE END | ||
variables: | ||
- group: architectures-x86-64 | ||
- group: tool-chain-clangpdb | ||
- group: tool-chain-clangpdb-windows-vm-image | ||
|
||
jobs: | ||
- template: templates/pr-gate-build-job-clang.yml | ||
- template: Matrix-Build-Job-Clang.yml | ||
parameters: | ||
tool_chain_tag: 'CLANGPDB' | ||
vm_image: 'ubuntu-latest' | ||
arch_list: "IA32,X64" | ||
# MU_CHANGE | ||
arch_list: $(arch_list) | ||
extra_steps: | ||
- script: sudo apt-get install mingw-w64 | ||
displayName: Install Windows Resource Compiler for Linux | ||
|
||
- script: sudo apt-get install mingw-w64 | ||
displayName: Install Windows Resource Compiler for Linux | ||
tool_chain_tag: $(tool_chain_tag) | ||
vm_image: $(vm_image) |
Oops, something went wrong.