@@ -156,6 +156,131 @@ jobs:
156
156
test -f debian/artifacts/test_1_amd64.buildinfo
157
157
test -f debian/artifacts/test_1_amd64.changes
158
158
159
+ extra-repo-keys-ascii :
160
+ needs : [single-package]
161
+ runs-on : ubuntu-latest
162
+ steps :
163
+ - uses : actions/checkout@v4
164
+ - id : download-keys
165
+ run : |
166
+ docker run --detach --mount="type=bind,src=${{ github.workspace }},dst=/workspace" --name=download-cont --rm --workdir=/workspace debian:stable-slim tail -f /dev/null
167
+ docker exec download-cont apt-get update
168
+ docker exec --user="$(id -u):$(id -g)" download-cont apt-get download debian-archive-keyring
169
+ docker stop --time=1 download-cont
170
+ dpkg-deb --extract debian-archive-keyring_*.deb debian-archive-keyring
171
+ {
172
+ printf 'debian-archive-keys<<EOF\n'
173
+ cat debian-archive-keyring/etc/apt/trusted.gpg.d/*.asc
174
+ printf 'EOF\n'
175
+ } >>"$GITHUB_OUTPUT"
176
+ - uses : ./
177
+ env :
178
+ DEB_BUILD_OPTIONS : noautodbgsym
179
+ with :
180
+ buildpackage-opts : --build=binary --no-sign
181
+ docker-image : test/Dockerfile_extra-repo-keys
182
+ # An output value instead of an environment variable is used here to
183
+ # not interfere with Docker’s environment down the line.
184
+ extra-repo-keys : ${{ steps.download-keys.outputs.debian-archive-keys }}
185
+ source-dir : test
186
+ - run : |
187
+ dpkg --info debian/artifacts/test_1_amd64.deb
188
+ dpkg --contents debian/artifacts/test_1_amd64.deb | grep ./usr/bin/mybin
189
+ test -f debian/artifacts/test_1_amd64.buildinfo
190
+ test -f debian/artifacts/test_1_amd64.changes
191
+
192
+ extra-repo-keys-files :
193
+ needs : [single-package]
194
+ runs-on : ubuntu-latest
195
+ steps :
196
+ - uses : actions/checkout@v4
197
+ - id : download-keys
198
+ run : |
199
+ docker run --detach --mount="type=bind,src=${{ github.workspace }},dst=/workspace" --name=download-cont --rm --workdir=/workspace debian:stable-slim tail -f /dev/null
200
+ docker exec download-cont apt-get update
201
+ docker exec --user="$(id -u):$(id -g)" download-cont apt-get download debian-archive-keyring
202
+ docker stop --time=1 download-cont
203
+ dpkg-deb --extract debian-archive-keyring_*.deb debian-archive-keyring
204
+ {
205
+ printf 'debian-archive-keys<<EOF\n'
206
+ ls -1 --directory debian-archive-keyring/etc/apt/trusted.gpg.d/*.asc
207
+ printf 'EOF\n'
208
+ } >>"$GITHUB_OUTPUT"
209
+ - uses : ./
210
+ env :
211
+ DEB_BUILD_OPTIONS : noautodbgsym
212
+ with :
213
+ buildpackage-opts : --build=binary --no-sign
214
+ docker-image : test/Dockerfile_extra-repo-keys
215
+ # An output value instead of an environment variable is used here to
216
+ # not interfere with Docker’s environment down the line.
217
+ extra-repo-keys : ${{ steps.download-keys.outputs.debian-archive-keys }}
218
+ source-dir : test
219
+ - run : |
220
+ dpkg --info debian/artifacts/test_1_amd64.deb
221
+ dpkg --contents debian/artifacts/test_1_amd64.deb | grep ./usr/bin/mybin
222
+ test -f debian/artifacts/test_1_amd64.buildinfo
223
+ test -f debian/artifacts/test_1_amd64.changes
224
+
225
+ extra-repos :
226
+ needs : [setup-hook]
227
+ runs-on : ubuntu-latest
228
+ steps :
229
+ - uses : actions/checkout@v4
230
+ - run : cat test/Makefile_extra-repos >>test/Makefile
231
+ - uses : ./
232
+ env :
233
+ DEB_BUILD_OPTIONS : noautodbgsym
234
+ with :
235
+ buildpackage-opts : --build=binary --no-sign
236
+ extra-repos : |
237
+ # These are intentionally given as two entries:
238
+ deb http://deb.debian.org/debian stable contrib
239
+ deb http://deb.debian.org/debian stable non-free
240
+ setup-hook : |
241
+ apt-get update # Called here manually only for testing purposes!
242
+ ! apt-cache policy | grep -E ' *release.*[ ,]o=Debian[,$$]' | grep -E '[ ,]c=contrib[,$$]'
243
+ ! apt-cache policy | grep -E ' *release.*[ ,]o=Debian[,$$]' | grep -E '[ ,]c=non-free[,$$]'
244
+ source-dir : test
245
+ - run : |
246
+ dpkg --info debian/artifacts/test_1_amd64.deb
247
+ dpkg --contents debian/artifacts/test_1_amd64.deb | grep ./usr/bin/mybin
248
+ test -f debian/artifacts/test_1_amd64.buildinfo
249
+ test -f debian/artifacts/test_1_amd64.changes
250
+
251
+ extra-repos-deb822 :
252
+ needs : [setup-hook]
253
+ runs-on : ubuntu-latest
254
+ steps :
255
+ - uses : actions/checkout@v4
256
+ - run : cat test/Makefile_extra-repos >>test/Makefile
257
+ - uses : ./
258
+ env :
259
+ DEB_BUILD_OPTIONS : noautodbgsym
260
+ with :
261
+ buildpackage-opts : --build=binary --no-sign
262
+ extra-repos : |
263
+ # These are intentionally given as two entries:
264
+ Types: deb
265
+ URIs: http://deb.debian.org/debian
266
+ Suites: stable
267
+ Components: contrib
268
+
269
+ Types: deb
270
+ URIs: http://deb.debian.org/debian
271
+ Suites: stable
272
+ Components: non-free
273
+ setup-hook : |
274
+ apt-get update # Called here manually only for testing purposes!
275
+ ! apt-cache policy | grep -E ' *release.*[ ,]o=Debian[,$$]' | grep -E '[ ,]c=contrib[,$$]'
276
+ ! apt-cache policy | grep -E ' *release.*[ ,]o=Debian[,$$]' | grep -E '[ ,]c=non-free[,$$]'
277
+ source-dir : test
278
+ - run : |
279
+ dpkg --info debian/artifacts/test_1_amd64.deb
280
+ dpkg --contents debian/artifacts/test_1_amd64.deb | grep ./usr/bin/mybin
281
+ test -f debian/artifacts/test_1_amd64.buildinfo
282
+ test -f debian/artifacts/test_1_amd64.changes
283
+
159
284
full-build :
160
285
runs-on : ubuntu-latest
161
286
steps :
0 commit comments