forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 8
80 lines (77 loc) · 2.69 KB
/
release.yaml
File metadata and controls
80 lines (77 loc) · 2.69 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Cloud Hypervisor edk2 release
on: [create, push]
jobs:
build-x64:
name: Build x86-64
runs-on: ubuntu-24.04
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install uuid-dev iasl build-essential git libbrotli-dev
- name: Install nasm
run: |
wget https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz
tar -xf nasm-2.15.05.tar.xz
pushd nasm-2.15.05/
./configure --prefix=/usr
make
sudo make install
popd
- name: Init submodules
run: git submodule update --init --recursive
- name: Build BaseTools and firmware
run: |
source edksetup.sh
make -C BaseTools
OvmfPkg/build.sh -p OvmfPkg/CloudHv/CloudHvX64.dsc -a X64 -b RELEASE
- name: Upload x86-64 artifact
if: github.event_name == 'create' && github.event.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: cloudhv-x64
path: Build/CloudHvX64/RELEASE_GCC/FV/CLOUDHV.fd
build-aarch64:
name: Build AArch64
runs-on: ubuntu-24.04
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install uuid-dev iasl build-essential git libbrotli-dev gcc-aarch64-linux-gnu
- name: Init submodules
run: git submodule update --init --recursive
- name: Build BaseTools and firmware
run: |
source edksetup.sh
make -C BaseTools
export GCC_AARCH64_PREFIX=aarch64-linux-gnu-
build -p ArmVirtPkg/ArmVirtCloudHv.dsc -a AARCH64 -t GCC -b RELEASE \
--pcd gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy=0xC000000000007FD1
- name: Upload AArch64 artifact
if: github.event_name == 'create' && github.event.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: cloudhv-aarch64
path: Build/ArmVirtCloudHv-AARCH64/RELEASE_GCC/FV/CLOUDHV_EFI.fd
release:
name: Release
if: github.event_name == 'create' && github.event.ref_type == 'tag'
needs: [build-x64, build-aarch64]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
cloudhv-x64/CLOUDHV.fd
cloudhv-aarch64/CLOUDHV_EFI.fd