Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

.azurepipelines: Use new Mu DevOps YAML Design #103

Merged
merged 3 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@ resources:
name: microsoft/mu_devops
ref: main

trigger: none

pr:
- main
- release/202202
variables:
- group: architectures-x86-64
- group: tool-chain-ubuntu-gcc

jobs:
- template: Jobs/PrGate.yml@mu_devops
parameters:
arch_list: IA32,X64
arch_list: $(arch_list)
do_ci_build: true
do_ci_setup: false
do_non_ci_build: false
do_non_ci_setup: true
do_pr_eval: true
packages: QemuQ35Pkg
target_list: NO-TARGET
tool_chain_tag: GCC5
vm_image: ubuntu-latest
tool_chain_tag: $(tool_chain_tag)
vm_image: $(vm_image)

14 changes: 6 additions & 8 deletions .azurepipelines/Windows-VS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ resources:
name: microsoft/mu_devops
ref: main

trigger: none

pr:
- main
- release/202202
variables:
- group: architectures-x86-64
- group: tool-chain-windows-visual-studio-latest

jobs:
- template: Jobs/PrGate.yml@mu_devops
parameters:
arch_list: IA32,X64
arch_list: $(arch_list)
do_ci_build: true
do_ci_setup: false
do_non_ci_build: false
do_non_ci_setup: true
do_pr_eval: true
packages: QemuQ35Pkg
target_list: NO-TARGET
tool_chain_tag: VS2022
vm_image: windows-2022
tool_chain_tag: $(tool_chain_tag)
vm_image: $(vm_image)
22 changes: 9 additions & 13 deletions Platforms/QemuQ35Pkg/.azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Platform: QemuQ35
# OS: Ubuntu
# Toolchain: GCC5
# Toolchain: GCC
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
Expand All @@ -17,19 +17,15 @@ resources:
name: microsoft/mu_devops
ref: main

trigger:
- main
- release/202202

pr:
- main
- release/202202
variables:
- group: architectures-x86-64
- group: tool-chain-ubuntu-gcc

jobs:
- job: Platform_CI
variables:
package: 'QemuQ35Pkg'
vm_image: 'ubuntu-18.04'
makubacki marked this conversation as resolved.
Show resolved Hide resolved
vm_image: $(vm_image)
should_run: true
run_flags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE"

Expand All @@ -39,15 +35,15 @@ jobs:

QemuQ35_DEBUG:
Build.File: "Platforms/$(package)/PlatformBuild.py"
Build.Arch: "IA32,X64"
Build.Arch: $(arch_list)
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)

QemuQ35_RELEASE:
Build.File: "Platforms/$(package)/PlatformBuild.py"
Build.Arch: "IA32,X64"
Build.Arch: $(arch_list)
Build.Flags: ""
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Expand All @@ -56,7 +52,7 @@ jobs:
# NOOPT build too big to fit in FVs
#QemuQ35_NOOPT:
# Build.File: "Platforms/$(package)/PlatformBuild.py"
# Build.Arch: "IA32,X64"
# Build.Arch: $(arch_list)
# Build.Flags: ""
# Build.Target: "NOOPT"
# Run.Flags: $(run_flags)
Expand All @@ -70,7 +66,7 @@ jobs:
steps:
- template: Steps/BuildPlatform.yml@mu_devops
parameters:
tool_chain_tag: GCC5
tool_chain_tag: $(tool_chain_tag)
build_pkg: $(package)
build_target: $(Build.Target)
build_arch: $(Build.Arch)
Expand Down
22 changes: 9 additions & 13 deletions Platforms/QemuQ35Pkg/.azurepipelines/Windows-VS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Platform: QemuQ35
# OS: Windows
# Toolchain: VS2022
# Toolchain: Visual Studio
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
Expand All @@ -17,19 +17,15 @@ resources:
name: microsoft/mu_devops
ref: main

trigger:
- main
- release/202202

pr:
- main
- release/202202
variables:
- group: architectures-x86-64
- group: tool-chain-windows-visual-studio-latest

jobs:
- job: Platform_CI
variables:
package: 'QemuQ35Pkg'
vm_image: 'windows-2022'
vm_image: $(vm_image)
should_run: true
run_flags: "SHUTDOWN_AFTER_RUN=TRUE QEMU_HEADLESS=TRUE EMPTY_DRIVE=TRUE"

Expand All @@ -39,15 +35,15 @@ jobs:

QemuQ35_DEBUG:
Build.File: "Platforms/$(package)/PlatformBuild.py"
Build.Arch: "IA32,X64"
Build.Arch: $(arch_list)
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)

QemuQ35_RELEASE:
Build.File: "Platforms/$(package)/PlatformBuild.py"
Build.Arch: "IA32,X64"
Build.Arch: $(arch_list)
Build.Flags: ""
Build.Target: "RELEASE"
Run.Flags: $(run_flags)
Expand All @@ -56,7 +52,7 @@ jobs:
# NOOPT build too big to fit in FV.
#QemuQ35_NOOPT:
# Build.File: "Platforms/$(package)/PlatformBuild.py"
# Build.Arch: "IA32,X64"
# Build.Arch: $(arch_list)
# Build.Flags: ""
# Build.Target: "NOOPT"
# Run.Flags: $(run_flags)
Expand All @@ -71,7 +67,7 @@ jobs:
steps:
- template: Steps/BuildPlatform.yml@mu_devops
parameters:
tool_chain_tag: VS2022
tool_chain_tag: $(tool_chain_tag)
build_pkg: $(package)
build_target: $(Build.Target)
build_arch: $(Build.Arch)
Expand Down