]> git.proxmox.com Git - efi-boot-shim.git/blob - .github/workflows/pullrequest.yml
New upstream version 15.4
[efi-boot-shim.git] / .github / workflows / pullrequest.yml
1 name: pull-request
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11 jobs:
12 cross-build-pull-request:
13 runs-on: ubuntu-20.04
14 container: vathpela/efi-ci:${{ matrix.distro }}-x64
15 name: ${{ matrix.distro }} ${{ matrix.efiarch }} cross-build
16
17 strategy:
18 matrix:
19 include:
20 - arch: amd64
21 efiarch: aa64
22 gccarch: aarch64
23 makearch: aarch64
24 distro: f35
25 - arch: amd64
26 efiarch: aa64
27 gccarch: aarch64
28 makearch: aarch64
29 distro: f34
30 - arch: amd64
31 efiarch: aa64
32 gccarch: aarch64
33 makearch: aarch64
34 distro: f33
35 - arch: amd64
36 efiarch: aa64
37 gccarch: aarch64
38 makearch: aarch64
39 distro: f32
40 - arch: amd64
41 efiarch: arm
42 gccarch: arm
43 makearch: arm
44 distro: f35
45 - arch: amd64
46 efiarch: arm
47 gccarch: arm
48 makearch: arm
49 distro: f34
50 - arch: amd64
51 efiarch: arm
52 gccarch: arm
53 makearch: arm
54 distro: f33
55 - arch: amd64
56 efiarch: arm
57 gccarch: arm
58 makearch: arm
59 distro: f32
60 - arch: amd64
61 efiarch: x64
62 gccarch: x86_64
63 makearch: x86_64
64 distro: f35
65 - arch: amd64
66 efiarch: x64
67 gccarch: x86_64
68 makearch: x86_64
69 distro: f34
70 - arch: amd64
71 efiarch: x64
72 gccarch: x86_64
73 makearch: x86_64
74 distro: f33
75 - arch: amd64
76 efiarch: x64
77 gccarch: x86_64
78 makearch: x86_64
79 distro: f32
80 - arch: amd64
81 efiarch: ia32
82 gccarch: x86_64
83 makearch: ia32
84 distro: f35
85 - arch: amd64
86 efiarch: ia32
87 gccarch: x86_64
88 makearch: ia32
89 distro: f34
90 - arch: amd64
91 efiarch: ia32
92 gccarch: x86_64
93 makearch: ia32
94 distro: f33
95 - arch: amd64
96 efiarch: ia32
97 gccarch: x86_64
98 makearch: ia32
99 distro: f32
100
101 steps:
102 - name: Checkout
103 uses: actions/checkout@v2
104 with:
105 # otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
106 ref: ${{ github.event.pull_request.head.sha }}
107 fetch-depth: 0
108 submodules: recursive
109 - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
110 id: update-submodules
111 run: |
112 make update
113 - name: Make a build directory for ${{ matrix.distro }} for ${{ matrix.efiarch }}
114 id: builddir
115 run: |
116 rm -rf build-${{ matrix.distro }}-${{ matrix.efiarch }}
117 mkdir build-${{ matrix.distro }}-${{ matrix.efiarch }}
118 cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
119 - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
120 id: build
121 run: |
122 pwd
123 cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
124 make TOPDIR=.. -f ../Makefile CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
125 - name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
126 id: install
127 run: |
128 pwd
129 cd build-${{ matrix.distro }}-${{ matrix.efiarch }}
130 make TOPDIR=.. -f ../Makefile CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
131 echo 'results:'
132 find /destdir -type f
133
134 build-pull-request-intel:
135 runs-on: ubuntu-20.04
136 container: vathpela/efi-ci:${{ matrix.distro }}-x64
137 name: ${{ matrix.distro }} ${{ matrix.efiarch }} build
138
139 strategy:
140 matrix:
141 include:
142 - arch: amd64
143 efiarch: x64
144 makearch: x86_64
145 distro: f35
146 - arch: amd64
147 efiarch: x64
148 makearch: x86_64
149 distro: f34
150 - arch: amd64
151 efiarch: x64
152 makearch: x86_64
153 distro: f33
154 - arch: amd64
155 efiarch: x64
156 makearch: x86_64
157 distro: f32
158 - arch: amd64
159 efiarch: x64
160 makearch: x86_64
161 distro: centos8
162 - arch: amd64
163 efiarch: x64
164 makearch: x86_64
165 distro: centos7
166 - arch: amd64
167 efiarch: ia32
168 makearch: ia32
169 distro: f35
170 - arch: amd64
171 efiarch: ia32
172 makearch: ia32
173 distro: f34
174 - arch: amd64
175 efiarch: ia32
176 makearch: ia32
177 distro: f33
178 - arch: amd64
179 efiarch: ia32
180 makearch: ia32
181 distro: f32
182 - arch: amd64
183 efiarch: ia32
184 makearch: ia32
185 distro: centos8
186 - arch: amd64
187 efiarch: ia32
188 makearch: ia32
189 distro: centos7
190
191 steps:
192 - name: Checkout
193 uses: actions/checkout@v2
194 with:
195 # otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
196 ref: ${{ github.event.pull_request.head.sha }}
197 fetch-depth: 0
198 submodules: recursive
199 - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
200 id: update-submodules
201 run: |
202 make update
203 - name: Do 'make clean' on ${{ matrix.distro }} for ${{ matrix.efiarch }}
204 id: clean
205 run: |
206 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean
207 - name: Run tests on ${{ matrix.distro }} for ${{ matrix.efiarch }}
208 id: test
209 run: |
210 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test
211 - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
212 id: build
213 run: |
214 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true all
215 - name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
216 id: install
217 run: |
218 make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
219 echo 'results:'
220 find /destdir -type f