Update test.yaml to specify server URL and repository for Git operations
Some checks failed
Gitea CTest Workflow / test (push) Failing after 4s

This commit is contained in:
2026-02-04 23:52:24 +08:00
parent aa3f652a8f
commit fc2fd50bac

View File

@@ -16,7 +16,9 @@ jobs:
with:
# 对于镜像仓库,建议显式指定 fetch-depth 确保获取完整历史(如果需要)
fetch-depth: 1
repository: https://cantyonion.site/git/${{ github.repository }}
server-url: https://cantyonion.site/git
repository: cantyonion/leetcode
token: ${{ secrets.GIT_TOKEN }}
- name: Configure CMake
# -B build 创建构建目录,-S . 指定源代码在当前目录