File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Cloud Hypervisor edk2 release
2
+ on : [create,push]
3
+
4
+ jobs :
5
+ build :
6
+ name : Build
7
+ runs-on : ubuntu-22.04
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
+
You can’t perform that action at this time.
0 commit comments