ci: build_on_debian: use variable expansion in needs:parallel:matrix

Since gitlab 18.6, a job can refer to a subset of parallel jobs[0],
so make use of it so that build jobs only depend on the container
job for the specific architecture.

[0]: https://docs.gitlab.com/ci/yaml/matrix_expressions/#matrix-expressions-in-needsparallelmatrix
This commit is contained in:
Barnabás Pőcze 2026-05-08 21:08:55 +02:00 committed by Wim Taymans
parent db5cb6515a
commit 05a1a08a04

View file

@ -341,12 +341,9 @@ build_on_debian:
needs:
- job: container_debian
artifacts: false
# ideally
# parallel:
# matrix:
# - ARCH: "$ARCH"
# however https://gitlab.com/gitlab-org/gitlab/-/issues/423553
# ("Expand variables in `needs:parallel:matrix`")
parallel:
matrix:
- ARCH: [ '$[[ matrix.ARCH ]]' ]
variables:
FDO_DISTRIBUTION_TAG: "$BASE_TAG-$ARCH"
# see /.gitlab/ci/setup-debian-cross-container.sh for installed packages