]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
b07e3199f14307c16df0b16b5eff076a3a798b04
[mirror_edk2.git] / ArmVirtPkg / PlatformCI / .azurepipelines / Ubuntu-GCC5.yml
1 ## @file
2 # Azure Pipeline build file for building a platform.
3 #
4 # Platform: ArmVirtQemu
5 # OS: Ubuntu
6 # Toolchain: GCC5
7 #
8 # Copyright (c) Microsoft Corporation.
9 # SPDX-License-Identifier: BSD-2-Clause-Patent
10 ##
11 trigger:
12 - master
13 - stable/*
14 pr:
15 - master
16 - stable/*
17
18 jobs:
19 - job: Platform_CI
20 variables:
21 package: 'ArmVirtPkg'
22 vm_image: 'ubuntu-18.04'
23 should_run: true
24 run_flags: "MAKE_STARTUP_NSH=TRUE QEMU_HEADLESS=TRUE"
25
26 #Use matrix to speed up the build process
27 strategy:
28 matrix:
29 QEMU_AARCH64_DEBUG:
30 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
31 Build.Arch: "AARCH64"
32 Build.Flags: ""
33 Build.Target: "DEBUG"
34 Run.Flags: $(run_flags)
35 Run: $(should_run)
36 QEMU_AARCH64_RELEASE:
37 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
38 Build.Arch: "AARCH64"
39 Build.Flags: ""
40 Build.Target: "RELEASE"
41 Run.Flags: $(run_flags)
42 Run: $(should_run)
43 QEMU_AARCH64_NOOPT:
44 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
45 Build.Arch: "AARCH64"
46 Build.Flags: ""
47 Build.Target: "NOOPT"
48 Run.Flags: $(run_flags)
49 Run: $(should_run)
50 QEMU_ARM_DEBUG:
51 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
52 Build.Arch: "ARM"
53 Build.Flags: ""
54 Build.Target: "DEBUG"
55 Run.Flags: $(run_flags)
56 Run: $(should_run)
57 QEMU_ARM_RELEASE:
58 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
59 Build.Arch: "ARM"
60 Build.Flags: ""
61 Build.Target: "RELEASE"
62 Run.Flags: $(run_flags)
63 Run: $(should_run)
64 QEMU_ARM_NOOPT:
65 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
66 Build.Arch: "ARM"
67 Build.Flags: ""
68 Build.Target: "NOOPT"
69 Run.Flags: $(run_flags)
70 Run: $(should_run)
71
72 workspace:
73 clean: all
74
75 pool:
76 vmImage: $(vm_image)
77
78 steps:
79 - template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
80 parameters:
81 tool_chain_tag: GCC5
82 build_pkg: $(package)
83 build_target: $(Build.Target)
84 build_arch: $(Build.Arch)
85 build_file: $(Build.File)
86 build_flags: $(Build.Flags)
87 run_flags: $(Run.Flags)
88 extra_install_step:
89 - bash: sudo apt-get install qemu
90 displayName: Install qemu
91 condition: and(gt(variables.pkg_count, 0), succeeded())