ci: consolidate pre-build CI stages

Back in the day we kept separate stages around to define
build order, however with DAG/needs now jobs run asynchronously.
Additionally on recent version its possibel to same jobs depend on
other jobs from the same stage.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3258>
This commit is contained in:
Jordan Petridis 2022-10-24 21:38:13 +03:00 committed by GStreamer Marge Bot
parent d6ad95dbe2
commit 0377218806

View file

@ -14,10 +14,7 @@ include:
- local: '.gitlab-image-tags.yml' - local: '.gitlab-image-tags.yml'
stages: stages:
- 'trigger'
- 'build docker'
- 'preparation' - 'preparation'
- 'pre-build'
- 'build' - 'build'
- 'test' - 'test'
# Use the resulting binaries # Use the resulting binaries
@ -103,7 +100,7 @@ default:
# This is an empty job that is used to trigger the pipeline. # This is an empty job that is used to trigger the pipeline.
trigger: trigger:
image: alpine:latest image: alpine:latest
stage: 'trigger' stage: 'preparation'
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: script:
@ -132,7 +129,7 @@ fedora amd64 docker:
extends: extends:
- '.fedora image' - '.fedora image'
- '.fdo.container-build@fedora' - '.fdo.container-build@fedora'
stage: 'build docker' stage: 'preparation'
needs: needs:
- "trigger" - "trigger"
tags: tags:
@ -150,12 +147,12 @@ gst-indent amd64 docker:
extends: extends:
- '.gst-indent image' - '.gst-indent image'
- '.fdo.container-build@debian' - '.fdo.container-build@debian'
stage: 'build docker' stage: 'preparation'
# Do not depend on the trigger, as we want to run indent always # Do not depend on the trigger, as we want to run indent always
needs: [] needs: []
windows amd64 docker: windows amd64 docker:
stage: "build docker" stage: "preparation"
needs: needs:
- "trigger" - "trigger"
timeout: '3h' timeout: '3h'