From nobody Sat May 18 19:12:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+81268+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+81268+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1632897596; cv=none; d=zohomail.com; s=zohoarc; b=Gfrphe4G2mVOgpmi8zJQTcIytE+R7HyXSj6llMknKJq484A52ONB13v+fIoftJvmzTJYt1tw/o15iYs3wKihl00Y9WJxp4urOGkSIkSWk0fLEiauSfOD3GnenqNbIKZQKvq4Ne1tom7k6SEJWDpzQggjLblnUTDWP5cqZZmstWc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632897596; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=bAfCpZByoUG8/kbYaOS+kFs74deSmbwtWpY7P1/9P9A=; b=c84qjnpX7XEZzdIXTV6EBEFlsVZcWAh7kb94lqQm7AZOqZrBeGZbI3ensCndk6jceMLAlnW0CzgujvKxMNsavmpLrtDQ2GyzlShpNBFNHp7K4xF9QOOao8i3SXD4Kl1IJvw4Tzs1RqLM2nPpJVnUrIpLeS0quVXTek5vmbaxY2I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+81268+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1632897596726484.35120217592134; Tue, 28 Sep 2021 23:39:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id D89jYY1788612xLvk0UeiXC3; Tue, 28 Sep 2021 23:39:54 -0700 X-Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web11.5389.1632897592671646051 for ; Tue, 28 Sep 2021 23:39:53 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="212126908" X-IronPort-AV: E=Sophos;i="5.85,331,1624345200"; d="scan'208";a="212126908" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 23:39:51 -0700 X-IronPort-AV: E=Sophos;i="5.85,331,1624345200"; d="scan'208";a="554508905" X-Received: from duntan-mobl.ccr.corp.intel.com ([10.238.1.53]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 23:39:47 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Ray Ni Subject: [edk2-devel] [PATCH] .azurepipelines: Enable CI for WhiskeylakeOpenBoard in Edk2platforms Date: Wed, 29 Sep 2021 14:37:31 +0800 Message-Id: <20210929063731.428-1-dun.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dun.tan@intel.com X-Gm-Message-State: Hso0so5JSV8akfObEHKxg61hx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1632897594; bh=tcnctMfW9d09QKIsVv/KK0LnQKy1ih8rT4VTfEFFSiU=; h=Cc:Date:From:Reply-To:Subject:To; b=fuUcBk2ZA8FYT0DNdv9d+b5l+vTmjH4tW/nDZHclUw1tF8T/C0dJ6S1OqEl+2f7OOkQ l3Wr3RDQrGI3vrnmBFqwLKPoVe8YNOz02D26v83jzvuQ/SWGTquWiJsQrJFxXQH/3Ov1P sXY8Jx/r8nY38h/dqjhyYb/4JxMTWoGeJZI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1632897597223100001 Content-Type: text/plain; charset="utf-8" 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 Acked-by: Ray Ni --- .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-plat= forms.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 w= indows 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\ASL\" + choco install nasm -y + echo "##vso[task.setvariable variable=3DNASM_PREFIX;]C:\Program File= s\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() --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#81268): https://edk2.groups.io/g/devel/message/81268 Mute This Topic: https://groups.io/mt/85943052/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-