-
Notifications
You must be signed in to change notification settings - Fork 294
188 lines (181 loc) · 5.96 KB
/
pullrequest.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: pull-request
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cross-build-pull-request:
runs-on: ubuntu-20.04
container: vathpela/efi-ci:${{ matrix.distro }}-x64
name: ${{ matrix.distro }} ${{ matrix.efiarch }} cross-build
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
efiarch: aa64
gccarch: aarch64
makearch: aarch64
distro: f40
- arch: amd64
efiarch: aa64
gccarch: aarch64
makearch: aarch64
distro: f39
- arch: amd64
efiarch: arm
gccarch: arm
makearch: arm
distro: f40
- arch: amd64
efiarch: arm
gccarch: arm
makearch: arm
distro: f39
- arch: amd64
efiarch: arm
gccarch: arm
makearch: arm
distro: f38
- arch: amd64
efiarch: x64
gccarch: x86_64
makearch: x86_64
distro: f40
- arch: amd64
efiarch: x64
gccarch: x86_64
makearch: x86_64
distro: f39
- arch: amd64
efiarch: x64
gccarch: x86_64
makearch: x86_64
distro: f38
- arch: amd64
efiarch: ia32
gccarch: x86_64
makearch: ia32
distro: f40
- arch: amd64
efiarch: ia32
gccarch: x86_64
makearch: ia32
distro: f39
- arch: amd64
efiarch: ia32
gccarch: x86_64
makearch: ia32
distro: f38
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: recursive
- name: Work around directory ownership issue
id: ignore-ownership
run: |
git config --global --add safe.directory /__w/shim/shim
- name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: update-submodules
run: |
make update
- name: Make a build directory for ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: builddir
run: |
rm -rf build-${{ matrix.distro }}-${{ matrix.efiarch }}
mkdir build-${{ matrix.distro }}-${{ matrix.efiarch }}
cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
- name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: build
run: |
pwd
cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
make TOPDIR=.. -f ../Makefile CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
- name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: install
run: |
pwd
cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
make TOPDIR=.. -f ../Makefile CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
echo 'results:'
find /destdir -type f
build-pull-request-intel:
runs-on: ubuntu-20.04
container: vathpela/efi-ci:${{ matrix.distro }}-x64
name: ${{ matrix.distro }} ${{ matrix.efiarch }} build
strategy:
matrix:
include:
- arch: amd64
efiarch: x64
makearch: x86_64
distro: f40
- arch: amd64
efiarch: x64
makearch: x86_64
distro: f39
- arch: amd64
efiarch: x64
makearch: x86_64
distro: f38
- arch: amd64
efiarch: x64
makearch: x86_64
distro: centos9
- arch: amd64
efiarch: x64
makearch: x86_64
distro: centos8
- arch: amd64
efiarch: ia32
makearch: ia32
distro: f39
- arch: amd64
efiarch: ia32
makearch: ia32
distro: f38
- arch: amd64
efiarch: ia32
makearch: ia32
distro: centos8
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: recursive
- name: Work around directory ownership issue
id: ignore-ownership
run: |
git config --global --add safe.directory /__w/shim/shim
- name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: update-submodules
run: |
make update
- name: Do 'make clean' on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: clean
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean
- name: Run tests on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: test
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test
- name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: build
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
- name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
id: install
run: |
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
echo 'results:'
find /destdir -type f