From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.6568.1632965308979336006 for ; Wed, 29 Sep 2021 18:28:31 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 30 Sep 2021 09:28:24 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , "'Ni, Ray'" Cc: "'Sean Brogan'" , "'Bret Barkelew'" , "'Kinney, Michael D'" References: <20210929063731.428-1-dun.tan@intel.com> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIXSAuYXp1cmVwaXBlbGluZXM6IEVuYWJsZSBDSSBmb3IgV2hpc2tleWxha2VPcGVuQm9hcmQgaW4gRWRrMnBsYXRmb3Jtcw==?= Date: Thu, 30 Sep 2021 09:28:26 +0800 Message-ID: <00c101d7b59a$777ef900$667ceb00$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQISc+QR2WZn8iysrKBrDOoSCEODeQJYal0IAiBbESCrIoak8A== Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Dun: I understand this test is to make sure Edk2 change doesn't break WhiskeylakeOpenBoard build. It is still for edk2 change.=20 Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED duntan > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA9=D4=C230=C8=D5 9:15 > =CA=D5=BC=FE=C8=CB: Ni, Ray ; devel@edk2.groups.io > =B3=AD=CB=CD: Sean Brogan ; Bret Barkelew > ; Kinney, Michael D > ; Liming Gao > =D6=F7=CC=E2: Re: [edk2-devel] [PATCH] .azurepipelines: Enable CI for > WhiskeylakeOpenBoard in Edk2platforms >=20 > Hi Ray, > The CI is in edk2. The edk2 pull request which contains changes in specified > folders of edk2 will trigger the ci to pull the latest code of edk2-platforms, > intel/FSP and edk2-non-osi and build WhiskeyLakeOpenBoard. >=20 > Thanks, > Dun > -----Original Message----- > From: Ni, Ray > Sent: Wednesday, September 29, 2021 10:17 PM > To: Tan, Dun ; devel@edk2.groups.io > Cc: Sean Brogan ; Bret Barkelew > ; Kinney, Michael D > ; Liming Gao > Subject: RE: [PATCH] .azurepipelines: Enable CI for WhiskeylakeOpenBoard in > Edk2platforms >=20 > Is this a patch to enable CI in edk2-platforms? >=20 > Package maintainers can directly check in changes to edk2-platforms. Then > how the CI is triggered? >=20 > Will the CI run because of a edk2 pull request? >=20 > Thanks, > Ray >=20 > > -----Original Message----- > > From: Tan, Dun > > Sent: Wednesday, September 29, 2021 2:38 PM > > To: devel@edk2.groups.io > > Cc: Sean Brogan ; Bret Barkelew > > ; Kinney, Michael D > > ; Liming Gao ; > > Ni, Ray > > Subject: [PATCH] .azurepipelines: Enable CI for WhiskeylakeOpenBoard > > in Edk2platforms > > > > The edk2-platforms.yml contains the necessary github repo that will be > > checked out, the platform name to build and the folders in edk2 which > > will trigger the CI. The edk2platforms-run-steps.yml contains the main > > steps to build WhiskeylakeOpenBoard. > > > > Cc: Sean Brogan > > Cc: Bret Barkelew > > Cc: Michael D Kinney > > Cc: Liming Gao > > Cc: Ray Ni > > > > Signed-off-by: Dun Tan > > --- > > .azurepipelines/edk2-platforms.yml | 71 > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++ > > .azurepipelines/edk2platforms-run-steps.yml | 72 > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++++++++ > > 2 files changed, 143 insertions(+) > > > > diff --git a/.azurepipelines/edk2-platforms.yml > > b/.azurepipelines/edk2-platforms.yml > > new file mode 100644 > > index 0000000000..5d47e213ad > > --- /dev/null > > +++ b/.azurepipelines/edk2-platforms.yml > > @@ -0,0 +1,71 @@ > > +## @file > > +# Azure Pipeline build file for WhiskeylakeOpenBoard in Edk2platforms > > +on windows and ubuntu # # Copyright (c) 2021, Intel Corporation. All > > +rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent > > +## > > +trigger: > > + - master > > + - stable/* > > +pr: > > + branches: > > + include: > > + - master > > + - stable/* > > + paths: > > + include: > > + - BaseTools > > + - CryptoPkg > > + - FatPkg > > + - IntelFsp2WrapperPkg > > + - MdeModulePkg > > + - MdePkg > > + - NetworkPkg > > + - PcAtChipsetPkg > > + - SecurityPkg > > + - ShellPkg > > + - UefiCpuPkg > > + > > +resources: > > + repositories: > > + - repository: edk2-platforms > > + type: github > > + endpoint: tianocore > > + name: tianocore/edk2-platforms > > + - repository: edk2-non-osi > > + type: github > > + endpoint: tianocore > > + name: tianocore/edk2-non-osi > > + - repository: FSP > > + type: github > > + endpoint: tianocore > > + name: intel/FSP > > + > > +jobs: > > + - job: Edk2Platforms_CI_Windows > > + pool: > > + vmImage: 'windows-latest' > > + strategy: > > + matrix: > > + WhiskeylakeOpenBoard_WhiskeylakeURvp: > > + Board.Name: "WhiskeylakeURvp" > > + WhiskeylakeOpenBoard_UpXtreme: > > + Board.Name: "UpXtreme" > > + steps: > > + - template: edk2platforms-run-steps.yml > > + parameters: > > + board_name: $(Board.Name) > > + pool_name: 'windows-latest' > > + > > + - job: Edk2Platforms_CI_Linux > > + pool: > > + vmImage: 'ubuntu-latest' > > + strategy: > > + matrix: > > + WhiskeylakeOpenBoard_WhiskeylakeURvp: > > + Board.Name: "WhiskeylakeURvp" > > + steps: > > + - template: edk2platforms-run-steps.yml > > + parameters: > > + board_name: $(Board.Name) > > + pool_name: 'ubuntu-latest' > > diff --git a/.azurepipelines/edk2platforms-run-steps.yml > > b/.azurepipelines/edk2platforms-run-steps.yml > > new file mode 100644 > > index 0000000000..04b5d40fd8 > > --- /dev/null > > +++ b/.azurepipelines/edk2platforms-run-steps.yml > > @@ -0,0 +1,72 @@ > > +## @file > > +# File templates/edk2platforms-run-steps.yml > > +# > > +# template file containing the steps to build # # Copyright (c) 2021, > > +Intel Corporation. All rights reserved.
# > > +SPDX-License-Identifier: BSD-2-Clause-Patent ## > > +parameters: > > +- name: board_name > > + type: string > > + default: '' > > +- name: pool_name > > + type: string > > + default: '' > > + > > +steps: > > +- checkout: self > > + submodules: true > > +- checkout: edk2-non-osi > > +- checkout: FSP > > +- checkout: edk2-platforms > > + > > +- task: UsePythonVersion@0 > > + inputs: > > + versionSpec: "3.8.x" > > + architecture: "x64" > > + > > +- ${{ if contains(parameters.pool_name, 'ubuntu') }}: > > + - bash: | > > + sudo apt-get update > > + sudo apt-get install gcc g++ make uuid-dev nasm iasl > > + displayName: Update apt and Install required tools > > + - script: | > > + source edksetup.sh > > + echo "##vso[task.setvariable variable=3DPATH;]$PATH" > > + displayName: Set env Path > > + workingDirectory: edk2/ > > + > > +- ${{ if contains(parameters.pool_name, 'windows') }}: > > + - powershell: | > > + choco install iasl -y --version=3D2017.11.10 > > + echo "##vso[task.setvariable variable=3DIASL_PREFIX;]C:\tools\AS= L\" > > + choco install nasm -y > > + echo "##vso[task.setvariable variable=3DNASM_PREFIX;]C:\Program > Files\NASM\" > > + displayName: Windows EDK II Prerequisites > > + > > +# Build WhiskeylakeOpenBoard in edk2platforms > > +- script: python build_bios.py --platform ${{ parameters.board_name}} > > + displayName: Build platform ${{ parameters.board_name}} > > + workingDirectory: edk2-platforms/Platform/Intel > > + > > +# Copy the build logs to the artifact staging directory > > +- task: CopyFiles@2 > > + displayName: "Copy build logs" > > + inputs: > > + targetFolder: "$(Build.ArtifactStagingDirectory)" > > + SourceFolder: > > + contents: | > > + Build.log > > + BuildReport.log > > + flattenFolders: true > > + condition: succeededOrFailed() > > + > > +# Publish build artifacts to Azure Artifacts/TFS or a file share > > +- task: PublishBuildArtifacts@1 > > + continueOnError: true > > + displayName: "Publish build logs" > > + inputs: > > + pathtoPublish: "$(Build.ArtifactStagingDirectory)" > > + artifactName: "Build Logs $(System.JobName)" > > + condition: succeededOrFailed() > > -- > > 2.31.1.windows.1 >=20 >=20 >=20 >=20 >=20