Skip to content

Commit

Permalink
fix(gitlab-ci): 修正 GitLab CI 任務非必要地取出 Git 子模組
Browse files Browse the repository at this point in the history
減少 GitLab CI 任務執行所需時間

Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed Nov 8, 2024
1 parent 54696f4 commit 61ce180
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
#
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]>
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects
variables:
GIT_SUBMODULE_STRATEGY: recursive

# Limit fetch depth to reduce submodule checkout time
GIT_SUBMODULE_DEPTH: 1

do-static-analysis:
stage: test
rules:
Expand Down Expand Up @@ -47,6 +41,11 @@ generate-build-artifacts:
script:
- ./continuous-integration/generate-build-artifacts.install-system-deps.sh
- ./continuous-integration/generate-build-artifacts.sh
variables:
GIT_SUBMODULE_STRATEGY: recursive

# Limit fetch depth to reduce submodule checkout time
GIT_SUBMODULE_DEPTH: 1

upload-release-assets:
stage: deploy
Expand Down

0 comments on commit 61ce180

Please sign in to comment.