Replace checkout action with direct git clone command in test.yaml
Some checks failed
Gitea CTest Workflow / test (push) Failing after 4s

This commit is contained in:
2026-02-04 23:57:04 +08:00
parent 6f30721f1b
commit 3559f83475

View File

@@ -10,14 +10,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# 显式使用 gitea.com 上的 checkout 镜像
- name: Checkout Code - name: Checkout Code
uses: https://git.dev.cereflow.cn/mirror/checkout@v6 run: |
with: git clone https://cantyonion.site/git/cantyonion/leetcode.git .
# 对于镜像仓库,建议显式指定 fetch-depth 确保获取完整历史(如果需要)
fetch-depth: 1
server-url: https://cantyonion.site/git
repository: cantyonion/leetcode
- name: Configure CMake - name: Configure CMake
# -B build 创建构建目录,-S . 指定源代码在当前目录 # -B build 创建构建目录,-S . 指定源代码在当前目录