From a29828e8d5eef2e48046f42438958e4b11889de3 Mon Sep 17 00:00:00 2001 From: yinxue <2643126914@qq.com> Date: Tue, 21 Oct 2025 20:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AE=89=E8=A3=85=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E9=93=BE,=E6=94=B9=E4=B8=BA=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 16029ce..40a6b30 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -10,37 +10,32 @@ on: jobs: test-and-build: runs-on: ubuntu-latest + container: + image: ghcr.io/rust-lang/rust:latest steps: # 1. 检出代码 - 使用 Gitea 本地的 actions 镜像 - name: 🔍 Check out repository code uses: https://devstar.cn/actions/checkout@v4 - # 2. 安装 Rust 工具链 - - name: 🦀 Set up Rust - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - # 3. 显示环境信息 + # 2. 显示环境信息 - name: ℹ️ Environment Info run: | rustc --version cargo --version echo "Building repository: ${{ gitea.repository }}" - # 4. 构建项目(调试模式) + # 3. 构建项目(调试模式) - name: 🔧 Build (Debug) run: cargo build --verbose - # 5. 构建项目(发布模式) + # 4. 构建项目(发布模式) - name: 🚀 Build (Release) run: cargo build --release --verbose - # 6. 运行测试 + # 5. 运行测试 - name: ✅ Run Tests run: cargo test --verbose - - # 7. 清理构建缓存 + # 6. 清理构建缓存 - name: 🧹 Cleanup run: cargo clean \ No newline at end of file