Skip to content

Commit c1166d5

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

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/release.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 iasl build-essential python3-distutils git libbrotli-dev
15+
- name: Install nasm
16+
run: |
17+
wget https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz
18+
tar -xf nasm-2.15.05.tar.xz
19+
pushd nasm-2.15.05/
20+
./configure --prefix=/usr
21+
make
22+
sudo make install
23+
popd
24+
- name: Init submodules
25+
run: git submodule update --init --recursive
26+
- name: Create environment variables
27+
run: source edksetup.sh
28+
- name: Build BaseTools
29+
run: make -C BaseTools
30+
- name: Build CLOUDHV
31+
run: OvmfPkg/build.sh -p OvmfPkg/CloudHv/CloudHvX64.dsc -a X64 -b DEBUG
32+
- name: Create release
33+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
34+
id: create_release
35+
uses: actions/create-release@v1
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
tag_name: ${{ github.ref }}
40+
release_name: ${{ github.ref }}
41+
draft: true
42+
- name: Upload CLOUDHV.fd
43+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
44+
uses: actions/upload-release-asset@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
upload_url: ${{ steps.create_release.outputs.upload_url }}
49+
asset_path: Build/CloudHvX64/DEBUG_GCC5/FV/CLOUDHV.fd
50+
asset_name: CLOUDHV.fd
51+
asset_content_type: application/octet-stream
52+
53+
54+
55+
56+
57+
58+
59+
60+

0 commit comments

Comments
 (0)