-
Notifications
You must be signed in to change notification settings - Fork 5
132 lines (115 loc) · 3.24 KB
/
ipxe_build.yaml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: Build iPXE
on:
workflow_call:
env:
IPXE_REF: d3c8944d5c3ab262826ed33b16f3fc4dd43bc304
jobs:
x86:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ipxe/ipxe
ref: ${{ env.IPXE_REF }}
fetch-depth: 0 # we need the entire history to build iPXE
- name: Cache binaries
uses: actions/cache@v4
id: cache
with:
key: ipxe-x86-${{ env.IPXE_REF }}
path: |
src/bin/*.kpxe
src/bin*/*.efi
- name: Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
make -j4 -C src \
bin/undionly.kpxe \
bin-x86_64-efi/ipxe.efi \
bin-x86_64-efi/snponly.efi \
bin-i386-efi/ipxe.efi \
bin-i386-efi/snponly.efi
arm32:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ipxe/ipxe
ref: ${{ env.IPXE_REF }}
fetch-depth: 0 # we need the entire history to build iPXE
- name: Cache binaries
uses: actions/cache@v4
id: cache
with:
key: ipxe-arm32-${{ env.IPXE_REF }}
path: |
src/bin-arm32-efi/snponly.efi
- name: Add cross-compile deps
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
make -j4 -C src CROSS=arm-none-eabi- ARCH=arm32 \
bin-arm32-efi/snponly.efi
arm64:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ipxe/ipxe
ref: ${{ env.IPXE_REF }}
fetch-depth: 0 # we need the entire history to build iPXE
- name: Cache binaries
uses: actions/cache@v4
id: cache
with:
key: ipxe-arm64-${{ env.IPXE_REF }}
path: |
src/bin-arm64-efi/snponly.efi
- name: Add cross-compile deps
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu
- name: Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
make -j4 -C src CROSS=aarch64-linux-gnu- ARCH=arm64 \
bin-arm64-efi/snponly.efi
cache:
runs-on: ubuntu-20.04
needs:
- x86
- arm32
- arm64
steps:
- name: Mount x86 cache
uses: actions/cache@v4
with:
key: ipxe-x86-${{ env.IPXE_REF }}
path: |
src/bin/*.kpxe
src/bin*/*.efi
- name: Mount arm32 cache
uses: actions/cache@v4
with:
key: ipxe-arm32-${{ env.IPXE_REF }}
path: |
src/bin-arm32-efi/snponly.efi
- name: Mount arm64 cache
uses: actions/cache@v4
with:
key: ipxe-arm64-${{ env.IPXE_REF }}
path: |
src/bin-arm64-efi/snponly.efi
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: ipxe-roms
path: src/bin*/*