From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 60B3E74003A for ; Thu, 20 Jun 2024 11:49:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Yws/yJ78Imthof96Ky7dRnoEIUEonS9hMJu6RbNqI+Q=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1718884159; v=1; b=h5CbVlr1FNJP/mGWG4wumVMwK1V3VNWvgqWDN69Ci32vRVARMA8wrsgCqpuQSlb4xhw97mfa rrFAj1D4GWJdwsYTUJquBKuiHaeVhC5Wnm/Bap8iNF9a7LAlnaxNmT+m1CgBkg3B8nsxQ29tkex DiQSpeoU5FzSLHuqqru9n0FM3jgfNv6q0tCv7/LgyFQrKUD0AGxEoWuQI8AAoKMF51fs3Wl0uzo uOiyC3QvKU8jCMz/xXt67eg+4mkF1hSb+YnCUBhODi63MUmbB+5UkN2XGK4TbBF9UTMeh0mmUg+ I9NU5oFnWn8pc2qxcKOK2Ep+a58jsn1z0mkxdCCJ7DgdA== X-Received: by 127.0.0.2 with SMTP id jGfVYY7687511xJUUTE9i3X6; Thu, 20 Jun 2024 04:49:17 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mx.groups.io with SMTP id smtpd.web10.45681.1718884155791478241 for ; Thu, 20 Jun 2024 04:49:17 -0700 X-CSE-ConnectionGUID: Q0ruEb87QJ+5sSWo+8qw5w== X-CSE-MsgGUID: fXhbB6ZXTJi+6VhPudI70g== X-IronPort-AV: E=McAfee;i="6700,10204,11108"; a="12161904" X-IronPort-AV: E=Sophos;i="6.08,252,1712646000"; d="scan'208";a="12161904" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2024 04:49:17 -0700 X-CSE-ConnectionGUID: aZV+jW6PR02Mp2R6nc2BXQ== X-CSE-MsgGUID: sJ1DLFlQT3q/i6y0OAAwRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,252,1712646000"; d="scan'208";a="73421582" X-Received: from njayapra-mobl.gar.corp.intel.com ([10.247.207.132]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2024 04:49:16 -0700 From: "Jayaprakash, N" To: devel@edk2.groups.io Cc: Jayaprakash N , Rebecca Cran , Michael D Kinney Subject: [edk2-devel] [edk2-libc Patch v2 1/1] edk2-libc : add github actions workflow to build PyUEFI using VS2019 Date: Thu, 20 Jun 2024 17:17:27 +0530 Message-ID: <20240620114908.1610-2-n.jayaprakash@intel.com> In-Reply-To: <20240620114908.1610-1-n.jayaprakash@intel.com> References: <20240620114908.1610-1-n.jayaprakash@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 20 Jun 2024 04:49:17 -0700 Resent-From: n.jayaprakash@intel.com Reply-To: devel@edk2.groups.io,n.jayaprakash@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: iHUHymAe2kJCcwj2y1HegB1Lx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=h5CbVlr1; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4788 This commit adds github actions workflow to build python uefi interpreter with visual studio 2019 tool chain. The build-python-uefi-vs.yaml file under .github/workflows implements the build action for building the pyuefi interpreter with VS2019 tool chain. Cc: Rebecca Cran Cc: Michael D Kinney Cc: Jayaprakash N Signed-off-by: Jayaprakash N --- .github/workflows/build-python-uefi-vs.yaml | 84 +++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .github/workflows/build-python-uefi-vs.yaml diff --git a/.github/workflows/build-python-uefi-vs.yaml b/.github/workflows/build-python-uefi-vs.yaml new file mode 100644 index 0000000..a8393d8 --- /dev/null +++ b/.github/workflows/build-python-uefi-vs.yaml @@ -0,0 +1,84 @@ +# GitHub actions workflow to build python uefi using VS2019 +# +# Copyright (c) 2023-2024, Intel Corporation. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +name: Build Python Interpreter for UEFI using VS2019 + +on: [push, pull_request] + +jobs: + build: + runs-on: windows-2019 + env: + NASM_PREFIX: "C:\\Program Files\\NASM\\" + defaults: + run: + shell: cmd + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install NASM + run: choco install nasm + + - name: VSWhere + run: | + "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" + + - name: Setup environment for Visual Studio 2019 Build Tools + run: | + "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x86 + set + + - name: Clone EDK2 + run: | + git clone https://github.com/tianocore/edk2.git" + cd edk2 + git submodule update --init + + - name: Build EDK2 Base Tools + run: | + cd edk2 + dir + edksetup.bat ForceRebuild + + - name: Run srcprep.py + run: | + echo switching to AppPkg\Applications\Python\Python-3.6.8\ + cd AppPkg\Applications\Python\Python-3.6.8\ + dir + echo run srcprep.py file + python srcprep.py + + - name: Build Python UEFI + run: | + set PACKAGES_PATH=%CD%\edk2;%CD%; + set EDK2_LIBC_PATH=%CD% + cd edk2 + call edksetup.bat + build -t VS2019 -a X64 -b RELEASE -p %EDK2_LIBC_PATH%\AppPkg\AppPkg.dsc -D BUILD_PYTHON368 + + - name: Create Python UEFI package + run: | + set WORKSPACE=%CD%\edk2 + set EDK2_LIBC_PATH=%CD% + dir + call AppPkg\Applications\Python\Python-3.6.8\create_python_pkg.bat VS2019 RELEASE X64 myUEFIPy + + - name: List build artifacts + run: | + dir /S edk2\myUEFIPy + + - name: Upload build output as artifact + uses: actions/upload-artifact@v4 + with: + name: myUEFIPy-build-VS2019-output + path: edk2\myUEFIPy\**\* -- 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119652): https://edk2.groups.io/g/devel/message/119652 Mute This Topic: https://groups.io/mt/106778225/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-