]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
5fa7518d2c5ee5b0882c1d776add30d92c35eadf
[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 variables:
19 - template: ../../../.azurepipelines/templates/defaults.yml
20
21 jobs:
22 - job: Platform_CI
23 variables:
24 package: 'ArmVirtPkg'
25 vm_image: 'ubuntu-22.04'
26 should_run: true
27 run_flags: "MAKE_STARTUP_NSH=TRUE QEMU_HEADLESS=TRUE"
28
29 #Use matrix to speed up the build process
30 strategy:
31 matrix:
32 QEMU_AARCH64_DEBUG:
33 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
34 Build.Arch: "AARCH64"
35 Build.Flags: ""
36 Build.Target: "DEBUG"
37 Run.Flags: $(run_flags)
38 Run: $(should_run)
39 QEMU_AARCH64_RELEASE:
40 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
41 Build.Arch: "AARCH64"
42 Build.Flags: ""
43 Build.Target: "RELEASE"
44 Run.Flags: $(run_flags)
45 Run: $(should_run)
46 QEMU_AARCH64_NOOPT:
47 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
48 Build.Arch: "AARCH64"
49 Build.Flags: ""
50 Build.Target: "NOOPT"
51 Run.Flags: $(run_flags)
52 Run: $(should_run)
53 QEMU_ARM_DEBUG:
54 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
55 Build.Arch: "ARM"
56 Build.Flags: ""
57 Build.Target: "DEBUG"
58 Run.Flags: $(run_flags)
59 Run: $(should_run)
60 QEMU_ARM_RELEASE:
61 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
62 Build.Arch: "ARM"
63 Build.Flags: ""
64 Build.Target: "RELEASE"
65 Run.Flags: $(run_flags)
66 Run: $(should_run)
67 QEMU_ARM_NOOPT:
68 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
69 Build.Arch: "ARM"
70 Build.Flags: ""
71 Build.Target: "NOOPT"
72 Run.Flags: $(run_flags)
73 Run: $(should_run)
74
75 workspace:
76 clean: all
77
78 pool:
79 vmImage: $(vm_image)
80
81 container: ${{ variables.default_linux_image }}
82
83 steps:
84 - template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
85 parameters:
86 tool_chain_tag: GCC5
87 build_pkg: $(package)
88 build_target: $(Build.Target)
89 build_arch: $(Build.Arch)
90 build_file: $(Build.File)
91 build_flags: $(Build.Flags)
92 run_flags: $(Run.Flags)
93 usePythonVersion: '' # use Python from the container image