VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/.azurepipelines/templates/platform-build-run-steps.yml@ 89977

最後變更 在這個檔案從89977是 85718,由 vboxsync 提交於 5 年 前

Devices/EFI: Merge edk-stable202005 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.8 KB
 
1
2## @file
3# File steps.yml
4#
5# template file containing the steps to build
6#
7# Copyright (c) Microsoft Corporation.
8# SPDX-License-Identifier: BSD-2-Clause-Patent
9##
10
11parameters:
12- name: tool_chain_tag
13 type: string
14 default: ''
15- name: build_pkg
16 type: string
17 default: ''
18- name: build_target
19 type: string
20 default: ''
21- name: build_arch
22 type: string
23 default: ''
24- name: build_file
25 type: string
26 default: ''
27- name: build_flags
28 type: string
29 default: ''
30- name: run_flags
31 type: string
32 default: ''
33
34- name: extra_install_step
35 type: stepList
36 default: []
37
38steps:
39- checkout: self
40 clean: true
41 fetchDepth: 1
42
43- task: UsePythonVersion@0
44 inputs:
45 versionSpec: "3.8.x"
46 architecture: "x64"
47
48- script: pip install -r pip-requirements.txt --upgrade
49 displayName: 'Install/Upgrade pip modules'
50
51# Set default
52- bash: echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}"
53
54# trim the package list if this is a PR
55- task: CmdLine@1
56 displayName: Check if ${{ parameters.build_pkg }} need testing
57 inputs:
58 filename: stuart_pr_eval
59 arguments: -c ${{ parameters.build_file }} -t ${{ parameters.build_target}} -a ${{ parameters.build_arch}} --pr-target origin/$(System.PullRequest.targetBranch) --output-count-format-string "##vso[task.setvariable variable=pkg_count;isOutpout=true]{pkgcount}"
60 condition: eq(variables['Build.Reason'], 'PullRequest')
61
62 # Setup repo
63- task: CmdLine@1
64 displayName: Setup
65 inputs:
66 filename: stuart_setup
67 arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}} -t ${{ parameters.build_target}} -a ${{ parameters.build_arch}} ${{ parameters.build_flags}}
68 condition: and(gt(variables.pkg_count, 0), succeeded())
69
70# Stuart Update
71- task: CmdLine@1
72 displayName: Update
73 inputs:
74 filename: stuart_update
75 arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}} -t ${{ parameters.build_target}} -a ${{ parameters.build_arch}} ${{ parameters.build_flags}}
76 condition: and(gt(variables.pkg_count, 0), succeeded())
77
78# build basetools
79# do this after setup and update so that code base dependencies
80# are all resolved.
81- template: basetools-build-steps.yml
82 parameters:
83 tool_chain_tag: ${{ parameters.tool_chain_tag }}
84
85# Potential Extra steps
86- ${{ parameters.extra_install_step }}
87
88# Build
89- task: CmdLine@1
90 displayName: Build
91 inputs:
92 filename: stuart_build
93 arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}} TARGET=${{ parameters.build_target}} -a ${{ parameters.build_arch}} ${{ parameters.build_flags}}
94 condition: and(gt(variables.pkg_count, 0), succeeded())
95
96# Run
97- task: CmdLine@1
98 displayName: Run to shell
99 inputs:
100 filename: stuart_build
101 arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}} TARGET=${{ parameters.build_target}} -a ${{ parameters.build_arch}} ${{ parameters.build_flags}} ${{ parameters.run_flags }} --FlashOnly
102 condition: and(and(gt(variables.pkg_count, 0), succeeded()), eq(variables['Run'], true))
103 timeoutInMinutes: 1
104
105# Copy the build logs to the artifact staging directory
106- task: CopyFiles@2
107 displayName: "Copy build logs"
108 inputs:
109 targetFolder: "$(Build.ArtifactStagingDirectory)"
110 SourceFolder: "Build"
111 contents: |
112 BUILDLOG_*.txt
113 BUILDLOG_*.md
114 CI_*.txt
115 CI_*.md
116 CISETUP.txt
117 SETUPLOG.txt
118 UPDATE_LOG.txt
119 PREVALLOG.txt
120 TestSuites.xml
121 **/BUILD_TOOLS_REPORT.html
122 **/OVERRIDELOG.TXT
123 BASETOOLS_BUILD*.*
124 flattenFolders: true
125 condition: succeededOrFailed()
126
127# Publish build artifacts to Azure Artifacts/TFS or a file share
128- task: PublishBuildArtifacts@1
129 continueOnError: true
130 displayName: "Publish build logs"
131 inputs:
132 pathtoPublish: "$(Build.ArtifactStagingDirectory)"
133 artifactName: "Build Logs $(System.JobName)"
134 condition: succeededOrFailed()
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette