From 833b2471c58876aaea44bbff3546ea37941f4e3b Mon Sep 17 00:00:00 2001 From: rock Date: Wed, 16 Sep 2026 06:47:38 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20reduce=20disk=20usage=20=E2=80=94=20?= =?UTF-8?q?skip=20host=20cargo=20build,=20test=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit os error 5 (I/O error) = disk full. Two full Rust compiles (host cargo build + Docker cargo build) exceed runner disk. Keep only cargo test --lib on host, full build inside Docker. --- .gitea/workflows/build.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7cbe07e..e04e0e6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -35,11 +35,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Cargo build, test, clippy (single compile pass) + - name: Cargo test (lib only, no full build) run: | - cargo build --all --verbose cargo test --all --lib --verbose 2>&1 | tail -150 || true - cargo clippy --all --all-targets -- -D warnings 2>&1 | tail -50 || true - name: Get short SHA id: sha @@ -60,7 +58,8 @@ jobs: - name: Clean cargo before Docker build run: | cargo clean || true - rm -rf ~/.cargo/registry/cache ~/.cargo/registry/index ~/.cargo/git || true + rm -rf target/ || true + rm -rf ~/.cargo/registry/cache || true df -h / - name: Build and push Docker image (SHA tag only)