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 6607F941347 for ; Mon, 1 Jul 2024 08:46:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Ta5fQeEdi/cvml/1dHX5C9XZGeOwx5GEE64sEUIZv2Q=; 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=1719823598; v=1; b=OedM22OnrgpKPpb6lkeCto7v81weUc6YaM93TQhJdU1S1/b0fsgyh5GsVPA7oBDmNow9cXaY 5nll1M4lcMTaI+TP0kkx/HPwB1vCKB3Iy/C4aTp+Z2E4qUaj3NPmn7aSk19K+6I6UUVXYtUTs/b u1sx2IkArPrvvR+QkWwY1AigwCVtnF6nq5AzpsUiM9VBLxVtf0rRulnSswAdBr+uUYgTvY6itai PzuuTlnYe21DCHu+grqXX1ofVawgrdDTw/vdvF7XuYYlBn8KHpiqwLoBgtT5FpCmmHq68NdEDkg kI4/WMI143qJQ5v7S0QFeL57kUqz5Tuu+e5i38Cb5LKYg== X-Received: by 127.0.0.2 with SMTP id 8rMFYY7687511x9EkfRnPbVX; Mon, 01 Jul 2024 01:46:36 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by mx.groups.io with SMTP id smtpd.web10.15064.1719823589882635267 for ; Mon, 01 Jul 2024 01:46:31 -0700 X-CSE-ConnectionGUID: T60h1Mz7RAa3/nabpqo1ZA== X-CSE-MsgGUID: xsAJjoUMQnWS2mLuBD1ycQ== X-IronPort-AV: E=McAfee;i="6700,10204,11119"; a="17072869" X-IronPort-AV: E=Sophos;i="6.09,175,1716274800"; d="scan'208";a="17072869" X-Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2024 01:46:31 -0700 X-CSE-ConnectionGUID: BEoMQkriT+q4YxBd4Dqd9w== X-CSE-MsgGUID: 21BScC2/TbKxY/Splo3hDg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,175,1716274800"; d="scan'208";a="49916688" X-Received: from njayapra-mobl.gar.corp.intel.com ([10.247.147.19]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2024 01:46:29 -0700 From: "Jayaprakash, N" To: devel@edk2.groups.io Cc: Jayaprakash N , Rebecca Cran , Michael D Kinney Subject: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc : add github actions workflow to build PyUEFI using gcc Date: Mon, 1 Jul 2024 14:14:03 +0530 Message-ID: <20240701084622.1496-2-n.jayaprakash@intel.com> In-Reply-To: <20240701084622.1496-1-n.jayaprakash@intel.com> References: <20240701084622.1496-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: Mon, 01 Jul 2024 01:46:31 -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: 5KVVqPUE5uk5DhqKRL3AXJkIx7686176AA= 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=OedM22On; 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=4794 This commit adds github actions workflow to build python uefi interpreter with gcc tool chain on Ubuntu Linux system. The build-python-uefi-gcc.yaml file under .github/workflows implements the build action for building the pyuefi interpreter with gcc tool chain. Cc: Rebecca Cran Cc: Michael D Kinney Cc: Jayaprakash N Signed-off-by: Jayaprakash N --- .github/workflows/build-python-uefi-gcc.yaml | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/build-python-uefi-gcc.yaml diff --git a/.github/workflows/build-python-uefi-gcc.yaml b/.github/workflows/build-python-uefi-gcc.yaml new file mode 100644 index 0000000..5df6c5c --- /dev/null +++ b/.github/workflows/build-python-uefi-gcc.yaml @@ -0,0 +1,71 @@ +# GitHub actions workflow to build python uefi using gcc +# +# Copyright (c) 2023-2024, Intel Corporation. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +name: Build Python Interpreter for UEFI with GCC + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential uuid-dev iasl git nasm python3-distutils dos2unix + + - 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 + . edksetup.sh + make -C BaseTools + + - name: Run srcprep.py + run: | + cd AppPkg/Applications/Python/Python-3.6.8/ + python3 srcprep.py + + - name: Build Python UEFI + run: | + export PACKAGES_PATH=`pwd`/edk2:`pwd`: + export EDK2_LIBC_PATH=`pwd` + cd edk2 + . edksetup.sh + build -t GCC5 -a X64 -b RELEASE -p $EDK2_LIBC_PATH/AppPkg/AppPkg.dsc -D BUILD_PYTHON368 + + - name: Create PyUEFI package + run: | + export WORKSPACE=`pwd`/edk2 + echo WORKSPACE is $WORKSPACE + export EDK2_LIBC_PATH=`pwd` + # run the shell script through dos2unix to update any CRLF to LF line ending format + dos2unix AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh + . AppPkg/Applications/Python/Python-3.6.8/create_python_pkg.sh GCC5 RELEASE X64 myUEFIPy + + - name: List build artifacts + run: | + ls -R edk2/myUEFIPy + + - name: Upload build output as artifact + uses: actions/upload-artifact@v4 + with: + name: myUEFIPy-build-gcc-output + path: edk2/myUEFIPy/**/* \ No newline at end of file -- 2.45.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119734): https://edk2.groups.io/g/devel/message/119734 Mute This Topic: https://groups.io/mt/106974577/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-