Skip to content

Commit

Permalink
Sync pipelines and requirements with Basecore
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Barkelew authored and kenlautner committed Dec 18, 2023
1 parent f7c7cbb commit 52eb8b8
Show file tree
Hide file tree
Showing 14 changed files with 201 additions and 608 deletions.
45 changes: 33 additions & 12 deletions .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,47 @@
#
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
# MU_CHANGE [BEGIN]
trigger:
- master
- stable/*
- dev/*
- release/202208
- release/202202

schedules:
- cron: "30 9 * * 0,3" # Sun/Wed at 2:30AM Pacific
displayName: Sun/Wed Build
branches:
include:
- dev/*
- release/202208
- release/202202
always: true # Always build, even if no changes

pr:
- master
- stable/*
- dev/*
- release/202208
- release/202202

variables:
- template: templates/defaults.yml
resources:
repositories:
- repository: basecore
type: github
name: Microsoft/mu_basecore
ref: refs/heads/release/202208
endpoint: Microsoft
# MU_CHANGE [END]

jobs:
- template: templates/pr-gate-build-job.yml
parameters:
tool_chain_tag: 'GCC5'
vm_image: 'ubuntu-22.04'
container: ${{ variables.default_linux_image }}
# MU_CHANGE
# arch_list: "IA32,X64,ARM,AARCH64,RISCV64"
vm_image: 'ubuntu-latest'
arch_list: "IA32,X64,ARM,AARCH64,LOONGARCH64"
usePythonVersion: '' # use Python from the container image
# MU_CHANGE
extra_steps:
- script: |
sudo apt-get install -y mingw-w64 lcov
pip install lcov_cobertura pycobertura
displayName: Install Windows Resource Compiler for Linux & Code Coverage Tools
36 changes: 0 additions & 36 deletions .azurepipelines/Ubuntu-PatchCheck.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .azurepipelines/Windows-VS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## @file
# Azure Pipeline build file for a build using Windows and the Visual Studio compiler
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
# MU_CHANGE [BEGIN]
trigger:
- dev/*
- release/202208
- release/202202

schedules:
- cron: "0 8 * * 0,3" # Sun/Wed at 1AM Pacific
displayName: Sun/Wed Build
branches:
include:
- dev/*
- release/202208
- release/202202
always: true # Always build, even if no changes

pr:
- dev/*
- release/202208
- release/202202

resources:
repositories:
- repository: basecore
type: github
name: Microsoft/mu_basecore
ref: refs/heads/release/202208
endpoint: Microsoft
# MU_CHANGE [END]

variables:
- template: templates/defaults.yml

jobs:
- template: templates/pr-gate-build-job.yml
parameters:
tool_chain_tag: 'VS2022'
vm_image: 'windows-2022'
arch_list: "IA32,X64"
usePythonVersion: ${{ variables.default_python_version }}
extra_install_step:
- powershell: choco install opencppcoverage; Write-Host "##vso[task.prependpath]C:\Program Files\OpenCppCoverage"
displayName: Install Code Coverage Tool
condition: and(gt(variables.pkg_count, 0), succeeded())

29 changes: 0 additions & 29 deletions .azurepipelines/Windows-VS2019.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .azurepipelines/templates/basetools-build-steps.yml

This file was deleted.

150 changes: 0 additions & 150 deletions .azurepipelines/templates/platform-build-run-steps.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .azurepipelines/templates/pr-gate-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ parameters:
tool_chain_tag: ''
vm_image: ''
arch_list: ''
extra_steps: [] # MU_CHANGE

# Build step
jobs:
Expand All @@ -22,8 +23,8 @@ jobs:
strategy:
matrix:
TARGET_OTHER:
Build.Pkgs: 'EmbeddedPkg,SourceLevelDebugPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
Build.Pkgs: 'EmbeddedPkg,PrmPkg,SourceLevelDebugPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
TARGET_FMP_FAT:
Build.Pkgs: 'FmpDevicePkg,FatPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT'
Expand All @@ -40,9 +41,11 @@ jobs:
container: ${{ parameters.container }}

steps:
- template: pr-gate-steps.yml
- ${{ parameters.extra_steps }} # MU_CHANGE
- template: .azurepipelines/templates/pr-gate-steps.yml@basecore # MU_CHANGE
parameters:
tool_chain_tag: ${{ parameters.tool_chain_tag }}
build_pkgs: $(Build.Pkgs)
build_targets: $(Build.Targets)
build_archs: ${{ parameters.arch_list }}
has_ci_dependencies: true # MU_CHANGE
Loading

0 comments on commit 52eb8b8

Please sign in to comment.