]> git.proxmox.com Git - mirror_edk2.git/blob - EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
EmulatorPkg: CI: use Python version from defaults template
[mirror_edk2.git] / EmulatorPkg / PlatformCI / .azurepipelines / Ubuntu-GCC5.yml
1 ## @file
2 # Azure Pipeline build file for building a platform.
3 #
4 # Platform: EmulatorPkg
5 # OS: Ubuntu
6 # Toolchain: GCC5
7 #
8 # Copyright (c) Microsoft Corporation.
9 # Copyright (c) 2020, Intel Corporation. All rights reserved.
10 # SPDX-License-Identifier: BSD-2-Clause-Patent
11 ##
12 trigger:
13 - master
14 - stable/*
15 pr:
16 - master
17 - stable/*
18
19 variables:
20 - template: ../../../.azurepipelines/templates/defaults.yml
21
22 jobs:
23 - job: Platform_CI
24 variables:
25 package: 'EmulatorPkg'
26 vm_image: 'ubuntu-18.04'
27 should_run: false
28 run_flags: "MAKE_STARTUP_NSH=TRUE"
29
30 #Use matrix to speed up the build process
31 strategy:
32 matrix:
33 EmulatorPkg_X64_DEBUG:
34 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
35 Build.Arch: "X64"
36 Build.Flags: ""
37 Build.Target: "DEBUG"
38 Run.Flags: $(run_flags)
39 Run: $(should_run)
40 EmulatorPkg_X64_RELEASE:
41 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
42 Build.Arch: "X64"
43 Build.Flags: ""
44 Build.Target: "RELEASE"
45 Run.Flags: $(run_flags)
46 Run: $(should_run)
47 EmulatorPkg_X64_NOOPT:
48 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
49 Build.Arch: "X64"
50 Build.Flags: ""
51 Build.Target: "NOOPT"
52 Run.Flags: $(run_flags)
53 Run: $(should_run)
54 EmulatorPkg_X64_FULL_DEBUG:
55 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
56 Build.Arch: "X64"
57 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
58 Build.Target: "DEBUG"
59 Run.Flags: $(run_flags)
60 Run: $(should_run)
61 EmulatorPkg_X64_FULL_RELEASE:
62 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
63 Build.Arch: "X64"
64 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
65 Build.Target: "RELEASE"
66 Run.Flags: $(run_flags)
67 Run: $(should_run)
68 EmulatorPkg_X64_FULL_NOOPT:
69 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
70 Build.Arch: "X64"
71 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
72 Build.Target: "NOOPT"
73 Run.Flags: $(run_flags)
74 Run: $(should_run)
75
76 workspace:
77 clean: all
78
79 pool:
80 vmImage: $(vm_image)
81
82 steps:
83 - template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
84 parameters:
85 tool_chain_tag: GCC5
86 build_pkg: $(package)
87 build_target: $(Build.Target)
88 build_arch: $(Build.Arch)
89 build_file: $(Build.File)
90 build_flags: $(Build.Flags)
91 run_flags: $(Run.Flags)
92 usePythonVersion: ${{ variables.default_python_version }}