Files
EDK2-fork/.github/workflows/upl-build.yml
Gua Guo 2b6f979744 workflows: Add UniversalPayload in to git work flow
Add UPL fit binary build
Add UPL elf binary build

Signed-off-by: Gua Guo <gua.guo@intel.com>
2025-03-09 02:22:38 +08:00

62 lines
1.8 KiB
YAML

# @file up-build.yml
#
# A workflow that builds UefiPayloadPackage's UPL and upload it's artifacts.
#
##
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
name: UPL Build
on:
workflow_dispatch:
push:
branches: ['master']
jobs:
build_vs2022:
strategy:
matrix:
os: [windows-latest]
python-version: ['3.12']
tool-chain: ['VS2022']
target: ['DEBUG']
extra-build-args: ['FIT_BUILD=TRUE', 'FIT_BUILD=FALSE']
name: Build UPL VS2022
uses: ./.github/workflows/BuildPlatform.yml
with:
runs-on: ${{ matrix.os }}
build-file: 'UefiPayloadPkg/PlatformCI/PlatformBuild.py'
python-version: ${{ matrix.python-version }}
tool-chain: ${{ matrix.tool-chain }}
target: ${{ matrix.target }}
extra-build-args: ${{ matrix.extra-build-args }}
extra-pip-requirements: 'pefile pylibfdt'
extra-artifact-path: |
Build/**/*.elf
Build/**/*.fit
secrets: inherit
build_gcc:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.12']
tool-chain: ['GCC']
target: ['DEBUG']
extra-build-args: ['FIT_BUILD=TRUE', 'FIT_BUILD=FALSE']
name: Build UPL GCC
uses: ./.github/workflows/BuildPlatform.yml
with:
runs-on: ${{ matrix.os }}
build-file: 'UefiPayloadPkg/PlatformCI/PlatformBuild.py'
python-version: ${{ matrix.python-version }}
tool-chain: ${{ matrix.tool-chain }}
target: ${{ matrix.target }}
extra-build-args: ${{ matrix.extra-build-args }}
extra-pip-requirements: 'pefile pylibfdt'
extra-setup-cmd: 'sudo dnf install -y llvm clang llvm-libs llvm-devel lldb'
extra-artifact-path: |
Build/**/*.elf
Build/**/*.fit