|
58 | 58 | type: boolean |
59 | 59 | default: false |
60 | 60 |
|
61 | | - srcpkg-artifact: |
62 | | - description: | |
63 | | - Name of a GitHub Actions artifact containing a pre-prepared source tree |
64 | | - used as the build source checkout. When set, debian-ref checkout is |
65 | | - skipped and the artifact is downloaded instead for both Docker and |
66 | | - Debusine build paths. Used for packages like pkg-linux-qcom where the |
67 | | - source tree is assembled at CI time rather than managed in a single |
68 | | - git repository. |
69 | | - type: string |
70 | | - default: "" |
71 | | - |
72 | 61 | assemble-orig: |
73 | 62 | description: | |
74 | 63 | When true, generate-source-package creates the .orig.tar.gz directly |
@@ -230,29 +219,13 @@ jobs: |
230 | 219 | scripts |
231 | 220 |
|
232 | 221 | - name: Checkout Repository |
233 | | - if: ${{ inputs.srcpkg-artifact == '' }} |
234 | 222 | uses: actions/checkout@v5 |
235 | 223 | with: |
236 | 224 | ref: ${{ inputs.debian-ref }} |
237 | 225 | path: package-repo |
238 | 226 | fetch-depth: 0 |
239 | 227 | fetch-tags: true |
240 | 228 |
|
241 | | - - name: Download pre-prepared source tree |
242 | | - if: ${{ inputs.srcpkg-artifact != '' }} |
243 | | - uses: actions/download-artifact@v8 |
244 | | - with: |
245 | | - name: ${{ inputs.srcpkg-artifact }} |
246 | | - path: /tmp/srcpkg-artifact |
247 | | - |
248 | | - - name: Extract pre-prepared source tree |
249 | | - if: ${{ inputs.srcpkg-artifact != '' }} |
250 | | - run: | |
251 | | - # Single *.tar.gz in the artifact; glob decouples from producer naming. |
252 | | - mkdir package-repo |
253 | | - tar xzf /tmp/srcpkg-artifact/*.tar.gz \ |
254 | | - -C package-repo --strip-components=1 --no-same-owner |
255 | | -
|
256 | 229 | - name: Collect source package metadata |
257 | 230 | id: metadata |
258 | 231 | run: | |
@@ -318,35 +291,13 @@ jobs: |
318 | 291 | lib |
319 | 292 |
|
320 | 293 | - name: Checkout Repository |
321 | | - if: ${{ inputs.srcpkg-artifact == '' }} |
322 | 294 | uses: actions/checkout@v5 |
323 | 295 | with: |
324 | 296 | ref: ${{ inputs.debian-ref }} |
325 | 297 | path: srcpkg |
326 | 298 | fetch-depth: 0 |
327 | 299 | fetch-tags: true |
328 | 300 |
|
329 | | - - name: Download pre-prepared source tree |
330 | | - if: ${{ inputs.srcpkg-artifact != '' }} |
331 | | - uses: actions/download-artifact@v8 |
332 | | - with: |
333 | | - name: ${{ inputs.srcpkg-artifact }} |
334 | | - path: /tmp/srcpkg-artifact |
335 | | - |
336 | | - - name: Extract pre-prepared source tree |
337 | | - if: ${{ inputs.srcpkg-artifact != '' }} |
338 | | - run: | |
339 | | - # The artifact is a tar.gz archive created by the caller to preserve |
340 | | - # Unix execute permissions on kernel build scripts. zip format (used |
341 | | - # by actions/upload-artifact) strips execute bits; tar does not. |
342 | | - # --strip-components=1 extracts the top-level directory directly into |
343 | | - # srcpkg/ without depending on its name inside the archive. |
344 | | - # The artifact contains exactly one *.tar.gz, so the glob below stays |
345 | | - # unambiguous while decoupling this step from the producer's filename. |
346 | | - mkdir srcpkg |
347 | | - tar xzf /tmp/srcpkg-artifact/*.tar.gz \ |
348 | | - -C srcpkg --strip-components=1 --no-same-owner |
349 | | -
|
350 | 301 | - name: Prepare release |
351 | 302 | if: ${{ inputs.release }} |
352 | 303 | env: |
@@ -458,29 +409,13 @@ jobs: |
458 | 409 | lib |
459 | 410 |
|
460 | 411 | - name: Checkout Repository |
461 | | - if: ${{ needs.resolve.outputs.family == 'debian' && needs.resolve.outputs.force_docker_build != 'true' && inputs.srcpkg-artifact == '' }} |
| 412 | + if: ${{ needs.resolve.outputs.family == 'debian' && needs.resolve.outputs.force_docker_build != 'true' }} |
462 | 413 | uses: actions/checkout@v5 |
463 | 414 | with: |
464 | 415 | ref: ${{ inputs.debian-ref }} |
465 | 416 | path: srcpkg |
466 | 417 | fetch-depth: 1 |
467 | 418 |
|
468 | | - - name: Download pre-prepared source tree |
469 | | - if: ${{ needs.resolve.outputs.family == 'debian' && inputs.srcpkg-artifact != '' }} |
470 | | - uses: actions/download-artifact@v8 |
471 | | - with: |
472 | | - name: ${{ inputs.srcpkg-artifact }} |
473 | | - path: /tmp/srcpkg-artifact |
474 | | - |
475 | | - - name: Extract pre-prepared source tree |
476 | | - if: ${{ needs.resolve.outputs.family == 'debian' && inputs.srcpkg-artifact != '' }} |
477 | | - run: | |
478 | | - # Single *.tar.gz in the artifact; glob decouples from the |
479 | | - # producer's filename (see build-job extract step for rationale). |
480 | | - mkdir srcpkg |
481 | | - tar xzf /tmp/srcpkg-artifact/*.tar.gz \ |
482 | | - -C srcpkg --strip-components=1 --no-same-owner |
483 | | -
|
484 | 419 | - name: Validate installability from Debusine CI workspace |
485 | 420 | # Temporarily disabled while dependency repository injection is unresolved. |
486 | 421 | if: ${{ false }} |
|
0 commit comments