-
Notifications
You must be signed in to change notification settings - Fork 69
108 lines (85 loc) · 2.53 KB
/
ReBarDxe.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: ReBarDxe EDK2
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
TARGET: RELEASE
TARGET_ARCH: X64
jobs:
rebardxe-windows:
runs-on: windows-2019
env:
TOOL_CHAIN_TAG: VS2019
steps:
- uses: actions/setup-python@v4.3.0
- run: pip install pefile
- name: Support long filenames
run: git config --system core.longpaths true
# save nasm
- name: cache nasm
id: cache-nasm
uses: actions/cache@v3
with:
path: C:\nasm
key: nasm-path
# edk2's setup script checks for nasm only at 'C:\nasm' so install it there
- name: install nasm
if: steps.cache-nasm.outputs.cache-hit != 'true'
shell: powershell
run: |
md C:\nasm
Invoke-WebRequest -Uri "https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip" -OutFile "C:\nasm\nasm.zip"
cd C:\nasm
7z e nasm.zip
- name: Download edk2
uses: actions/checkout@v3
with:
repository: 'tianocore/edk2'
ref: 'edk2-stable202208'
submodules: 'recursive'
- name: Download RebarUEFI
uses: actions/checkout@v3
with:
path: '.\ReBarUEFI\'
- name: Setup EDK2
run: .\edksetup.bat Rebuild
- name: Build RebarDxe
run: .\ReBarUEFI\.github\workflows\buildffs.bat
- name: Upload ReBarDxe artifact
uses: actions/upload-artifact@master
with:
name: ReBarDxe (built on Windows)
path: ${{github.workspace}}/Build/ReBarUEFI/RELEASE_VS2019/X64/ReBarDxe.ffs
rebardxe-linux:
runs-on: ubuntu-22.04
env:
TOOL_CHAIN_TAG: GCC5
steps:
- uses: actions/setup-python@v4.3.0
- run: pip install pefile
- name: Download edk2
uses: actions/checkout@v3
with:
repository: 'tianocore/edk2'
ref: 'edk2-stable202208'
submodules: 'recursive'
path: '.'
- name: Download RebarUEFI
uses: actions/checkout@v3
with:
path: './ReBarUEFI/'
- name: Install dependencies
run: sudo apt install build-essential uuid-dev iasl git nasm python-is-python3
- name: Build Base Tools
run: make -C ./BaseTools/
- name: Setup EDK2
run: bash -c "source edksetup.sh"
- name: Build RebarDxe
run: ./ReBarUEFI/.github/workflows/buildffs.sh
- name: Upload ReBarDxe artifact
uses: actions/upload-artifact@master
with:
name: ReBarDxe (built on Linux)
path: ${{github.workspace}}/Build/ReBarUEFI/RELEASE_GCC5/X64/ReBarDxe.ffs