Skip to content

Commit

Permalink
.github/workflows/build.yml: add
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Pijanowski <[email protected]>
  • Loading branch information
macpijan committed Oct 8, 2023
1 parent b68e46b commit 5ca0aa8
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Check EDK2 QEMU Build

on:
push:
branches:
- dasharo
- github-actions
pull_request:
branches:
- dasharo

jobs:
build:
runs-on: ubuntu-latest

container:
image: coreboot/coreboot-sdk:2021-09-23_b0d87f753c
options: --user 1001:1001

steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
submodules: 'recursive' # Checkout submodules recursively.

- name: Clone edk2-platforms Repository
run: |
git clone https://github.com/Dasharo/edk2-platforms.git -b 3323ed481d35096fb6a7eae7b49f35eff00f86cf
- name: Setup Environment Variables
run: |
make -C BaseTools
source edksetup.sh
- name: Update PACKAGES_PATH
run: |
export EDK2_PLATFORMS_PATH="$WORKSPACE/edk2-platforms"
export PACKAGES_PATH="$WORKSPACE:$EDK2_PLATFORMS_PATH/Platform/Intel:$EDK2_PLATFORMS_PATH/Silicon/Intel:$EDK2_PLATFORMS_PATH/Features/Intel:$EDK2_PLATFORMS_PATH/Features/Intel/Debugging:$EDK2_PLATFORMS_PATH/Features/Intel/Network:$EDK2_PLATFORMS_PATH/Features/Intel/OutOfBandManagement:$EDK2_PLATFORMS_PATH/Features/Intel/PowerManagement:$EDK2_PLATFORMS_PATH/Features/Intel/SystemInformation:$EDK2_PLATFORMS_PATH/Features/Intel/UserInterface"
- name: Build OVMF Firmware Image (RELEASE)
run: |
build -a IA32 -a X64 -t GCC5 -b RELEASE -p OvmfPkg/OvmfPkgX64.dsc
- name: Build OVMF Firmware Image (DEBUG)
run: |
build -a IA32 -a X64 -t GCC5 -b DEBUG -p OvmfPkg/OvmfPkgX64.dsc
- name: Check Build Artifacts
run: |
if [ -f "Build/Ovmf/RELEASE_GCC5/FV/OVMF_CODE.fd" ] && [ -f "Build/Ovmf/RELEASE_GCC5/FV/OVMF_VARS.fd" ]; then
echo "RELEASE build successful. OVMF firmware image files found."
elif [ -f "Build/Ovmf/DEBUG_GCC5/FV/OVMF_CODE.fd" ] && [ -f "Build/Ovmf/DEBUG_GCC5/FV/OVMF_VARS.fd" ]; then
echo "DEBUG build successful. OVMF firmware image files found."
else
echo "Build failed. OVMF firmware image files not found."
exit 1
fi

0 comments on commit 5ca0aa8

Please sign in to comment.