mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-01 12:53:27 +01:00
92 lines
2.7 KiB
YAML
92 lines
2.7 KiB
YAML
|
## @file
|
||
|
# Azure Pipeline build file for building a platform.
|
||
|
#
|
||
|
# Platform: ArmVirtQemu
|
||
|
# OS: Ubuntu
|
||
|
# Toolchain: GCC5
|
||
|
#
|
||
|
# Copyright (c) Microsoft Corporation.
|
||
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||
|
##
|
||
|
trigger:
|
||
|
- master
|
||
|
- stable/*
|
||
|
pr:
|
||
|
- master
|
||
|
- stable/*
|
||
|
|
||
|
jobs:
|
||
|
- job: Platform_CI
|
||
|
variables:
|
||
|
package: 'ArmVirtPkg'
|
||
|
vm_image: 'ubuntu-18.04'
|
||
|
should_run: true
|
||
|
run_flags: "MAKE_STARTUP_NSH=TRUE QEMU_HEADLESS=TRUE"
|
||
|
|
||
|
#Use matrix to speed up the build process
|
||
|
strategy:
|
||
|
matrix:
|
||
|
QEMU_AARCH64_DEBUG:
|
||
|
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
|
||
|
Build.Arch: "AARCH64"
|
||
|
Build.Flags: ""
|
||
|
Build.Target: "DEBUG"
|
||
|
Run.Flags: $(run_flags)
|
||
|
Run: $(should_run)
|
||
|
QEMU_AARCH64_RELEASE:
|
||
|
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
|
||
|
Build.Arch: "AARCH64"
|
||
|
Build.Flags: ""
|
||
|
Build.Target: "RELEASE"
|
||
|
Run.Flags: $(run_flags)
|
||
|
Run: $(should_run)
|
||
|
QEMU_AARCH64_NOOPT:
|
||
|
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
|
||
|
Build.Arch: "AARCH64"
|
||
|
Build.Flags: ""
|
||
|
Build.Target: "NOOPT"
|
||
|
Run.Flags: $(run_flags)
|
||
|
Run: $(should_run)
|
||
|
QEMU_ARM_DEBUG:
|
||
|
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
|
||
|
Build.Arch: "ARM"
|
||
|
Build.Flags: ""
|
||
|
Build.Target: "DEBUG"
|
||
|
Run.Flags: $(run_flags)
|
||
|
Run: $(should_run)
|
||
|
QEMU_ARM_RELEASE:
|
||
|
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
|
||
|
Build.Arch: "ARM"
|
||
|
Build.Flags: ""
|
||
|
Build.Target: "RELEASE"
|
||
|
Run.Flags: $(run_flags)
|
||
|
Run: $(should_run)
|
||
|
QEMU_ARM_NOOPT:
|
||
|
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
|
||
|
Build.Arch: "ARM"
|
||
|
Build.Flags: ""
|
||
|
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)
|
||
|
extra_install_step:
|
||
|
- bash: sudo apt-get install qemu
|
||
|
displayName: Install qemu
|
||
|
condition: and(gt(variables.pkg_count, 0), succeeded())
|