Skip to content

Commit e6d6251

Browse files
rbradfordSebastien Boeuf
authored and
Sebastien Boeuf
committed
ci: Add automated building of OVMF
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
1 parent b451c69 commit e6d6251

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/release.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Cloud Hypervisor edk2 release
2+
on: [create,push]
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Code checkout
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- name: Install dependencies
14+
run: sudo apt-get update && sudo apt-get -y install uuid-dev nasm iasl build-essential python3-distutils git libbrotli-dev
15+
- name: Init submodules
16+
run: git submodule update --init
17+
- name: Build OVMF
18+
run: OvmfPkg/build.sh -a X64
19+
- name: Create release
20+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
21+
id: create_release
22+
uses: actions/create-release@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ github.ref }}
27+
release_name: ${{ github.ref }}
28+
draft: true
29+
- name: Upload OVMF.fd
30+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
31+
uses: actions/upload-release-asset@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
upload_url: ${{ steps.create_release.outputs.upload_url }}
36+
asset_path: Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd
37+
asset_name: OVMF.fd
38+
asset_content_type: application/octet-stream
39+
40+
41+
42+
43+
44+
45+
46+
47+

0 commit comments

Comments
 (0)