]> git.proxmox.com Git - efi-boot-shim.git/blob - .github/workflows/pullrequest.yml
New upstream version 15.3
[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: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
114 id: build
115 run: |
116 make -s CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean all || make CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean all
117 - name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
118 id: install
119 run: |
120 make -s CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install || make CROSS_COMPILE=${{ matrix.gccarch }}-linux-gnu- ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
121 echo 'results:'
122 find /destdir -type f
123
124 build-pull-request-intel:
125 runs-on: ubuntu-20.04
126 container: vathpela/efi-ci:${{ matrix.distro }}-x64
127 name: ${{ matrix.distro }} ${{ matrix.efiarch }} build
128
129 strategy:
130 matrix:
131 include:
132 - arch: amd64
133 efiarch: x64
134 makearch: x86_64
135 distro: f35
136 - arch: amd64
137 efiarch: x64
138 makearch: x86_64
139 distro: f34
140 - arch: amd64
141 efiarch: x64
142 makearch: x86_64
143 distro: f33
144 - arch: amd64
145 efiarch: x64
146 makearch: x86_64
147 distro: f32
148 - arch: amd64
149 efiarch: x64
150 makearch: x86_64
151 distro: centos8
152 - arch: amd64
153 efiarch: x64
154 makearch: x86_64
155 distro: centos7
156 - arch: amd64
157 efiarch: ia32
158 makearch: ia32
159 distro: f35
160 - arch: amd64
161 efiarch: ia32
162 makearch: ia32
163 distro: f34
164 - arch: amd64
165 efiarch: ia32
166 makearch: ia32
167 distro: f33
168 - arch: amd64
169 efiarch: ia32
170 makearch: ia32
171 distro: f32
172 - arch: amd64
173 efiarch: ia32
174 makearch: ia32
175 distro: centos8
176 - arch: amd64
177 efiarch: ia32
178 makearch: ia32
179 distro: centos7
180
181 steps:
182 - name: Checkout
183 uses: actions/checkout@v2
184 with:
185 # otherwise we are testing target branch instead of the PR branch (see pull_request_target trigger)
186 ref: ${{ github.event.pull_request.head.sha }}
187 fetch-depth: 0
188 submodules: recursive
189 - name: Update submodules on ${{ matrix.distro }} for ${{ matrix.efiarch }}
190 id: update-submodules
191 run: |
192 make update
193 - name: Run tests on ${{ matrix.distro }} for ${{ matrix.efiarch }}
194 id: test
195 run: |
196 make -s ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test || make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true test
197 - name: Do the build on ${{ matrix.distro }} for ${{ matrix.efiarch }}
198 id: build
199 run: |
200 make -s ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean all || make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true clean all
201 - name: Install on ${{ matrix.distro }} for ${{ matrix.efiarch }}
202 id: install
203 run: |
204 make -s ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install || make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
205 echo 'results:'
206 find /destdir -type f