-
-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (35 loc) · 1.15 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Check EDK2 QEMU Build
on:
push:
branches:
- dasharo
pull_request:
branches:
- dasharo
jobs:
build:
runs-on: ubuntu-latest
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 && \
cd edk2-platforms && \
git checkout 3323ed481d35096fb6a7eae7b49f35eff00f86cf && \
cd -
- name: Build OVMF Firmware Image
run: |
./github/scripts/build-qemu.sh
- 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