From 61ce1804ff73c24e6f7646207b69b454914f08b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Sat, 9 Nov 2024 02:34:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(gitlab-ci):=20=E4=BF=AE=E6=AD=A3=20GitLab?= =?UTF-8?q?=20CI=20=E4=BB=BB=E5=8B=99=E9=9D=9E=E5=BF=85=E8=A6=81=E5=9C=B0?= =?UTF-8?q?=E5=8F=96=E5=87=BA=20Git=20=E5=AD=90=E6=A8=A1=E7=B5=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 減少 GitLab CI 任務執行所需時間 Signed-off-by: 林博仁(Buo-ren Lin) --- .gitlab-ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c08438..ea4a201 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,12 +7,6 @@ # # Copyright 2024 林博仁(Buo-ren Lin) # 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: @@ -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