ci: Avoid cloning the submodules when they are not needed

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1503>
This commit is contained in:
Jordan Petridis 2024-08-21 17:07:50 +03:00
parent 4ee374e60c
commit 9b5b1d4650

View file

@ -76,6 +76,7 @@ trigger:
stage: 'trigger' stage: 'trigger'
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: "none"
tags: [ 'placeholder-job' ] tags: [ 'placeholder-job' ]
script: script:
- echo "Trigger job done, now running the pipeline." - echo "Trigger job done, now running the pipeline."
@ -316,6 +317,8 @@ rustfmt:
extends: .img-stable extends: .img-stable
stage: "lint" stage: "lint"
tags: [ 'placeholder-job' ] tags: [ 'placeholder-job' ]
variables:
GIT_SUBMODULE_STRATEGY: "none"
script: script:
- cargo fmt --version - cargo fmt --version
- cargo fmt -- --color=always --check - cargo fmt -- --color=always --check
@ -327,6 +330,8 @@ check commits:
extends: .img-stable extends: .img-stable
stage: "lint" stage: "lint"
tags: [ 'placeholder-job' ] tags: [ 'placeholder-job' ]
variables:
GIT_SUBMODULE_STRATEGY: "none"
script: script:
- ci-fairy check-commits --textwidth 0 --no-signed-off-by - ci-fairy check-commits --textwidth 0 --no-signed-off-by
needs: needs:
@ -337,6 +342,8 @@ typos:
extends: .img-stable extends: .img-stable
stage: "lint" stage: "lint"
tags: [ 'placeholder-job' ] tags: [ 'placeholder-job' ]
variables:
GIT_SUBMODULE_STRATEGY: "none"
script: script:
- typos - typos
needs: needs:
@ -384,6 +391,8 @@ gir-checks:
outdated: outdated:
extends: .img-stable extends: .img-stable
stage: 'extras' stage: 'extras'
variables:
GIT_SUBMODULE_STRATEGY: "none"
needs: needs:
- job: 'build-stable' - job: 'build-stable'
artifacts: false artifacts: false