From: Chenghao liu linkmecry@gmail.com
--- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f5ed6b68df..7860065c3a8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,3 +11,16 @@ include: - local: "/tools/gitlab/build.yml" - local: "/tools/gitlab/test.yml" - local: "/tools/gitlab/release.yml" + + # 在 before_script 部分添加(如果已有 before_script,就在其中添加) +before_script: + # 设置 Git 用户信息(修复 rebase 错误) + - git config --global user.email "linkmecry@gmail.com" + - git config --global user.name "Chenghao Liu" + # 你已有的其他配置 + - export BASEDIR="$PWD" + - export CCACHE_BASEDIR="$BASEDIR" + - export CCACHE_DIR="$BASEDIR/ccache" + - export CCACHE_COMPILERCHECK=content + - export PATH="/usr/lib/ccache:$PATH" + - git config --global --add safe.directory $CI_PROJECT_DIR