-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 1.98 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
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
name: Build ArmCpuInfo
on:
push:
branches: [ "devel" ]
tags: "v*"
pull_request:
branches: [ "devel" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install deps
run: sudo apt-get install git gcc-aarch64-linux-gnu build-essential uuid-dev iasl git nasm python-is-python3 coreutils mdm
- name: checkout EDK2
uses: actions/checkout@v4
with:
repository: tianocore/edk2
submodules: true
path: edk2
- name: checkout ArmCpuInfo
uses: actions/checkout@v4
with:
path: edk2/ArmPkg/Application
- name: enable ArmCpuInfo
run: echo "ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.inf" >> edk2/ArmPkg/ArmPkg.dsc
- name: build BaseTools
run: make -C edk2/BaseTools -j$(ncpus)
env:
WORKSPACE: $PWD
GCC_AARCH64_PREFIX: aarch64-linux-gnu-
PACKAGES_PATH: $WORKSPACE/edk2
- name: build ArmCpuInfo
run: |
export PATH=$PWD/edk2/BaseTools/Bin/Linux-x86_64:$PWD/edk2/BaseTools/BinWrappers/PosixLike:$PATH;
export WORKSPACE=$PWD;
export GCC_AARCH64_PREFIX=aarch64-linux-gnu-;
export PACKAGES_PATH=$WORKSPACE/edk2;
source edk2/edksetup.sh;
build -t GCC -a AARCH64 -b RELEASE -m edk2/ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.inf -p edk2/ArmPkg/ArmPkg.dsc
- name: upload ArmCpuInfo binary
uses: actions/upload-artifact@v4
with:
name: ArmCpuInfo
path: Build/Arm/RELEASE_GCC/AARCH64/ArmCpuInfo.efi
release:
name: Do a release
if: startsWith(github.ref, 'refs/tags/') # only on tag pushes
needs:
- build
runs-on: ubuntu-latest
permissions:
contents: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ArmCpuInfo
- name: Do a release
uses: ncipollo/release-action@v1
with:
artifacts: "ArmCpuInfo*"
generatereleasenotes: true