From 701c7ed3cd5605d41a07d209c45cf0a136f0dd5c Mon Sep 17 00:00:00 2001 From: Ink-dark Date: Sat, 27 Jun 2026 21:10:14 +0800 Subject: [PATCH] @ fix(ci): scope lite test and release build to specific crates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test-lite: cargo test -p agit-core -p agit-cli,排除 agit-ai 避免编译 reqwest - release build: cargo build -p agit-cli --all-features,仅构建 CLI Co-Authored-By: Claude @ --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 483b01d..d761116 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo test --verbose --no-default-features -F tag --all-targets + - run: cargo test -p agit-core -p agit-cli --verbose --no-default-features -F tag test-macos: name: Tests (macOS) @@ -122,7 +122,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo build --release --verbose + - run: cargo build --release -p agit-cli --all-features --verbose - run: | mkdir -p release cp target/release/agit release/agit @@ -157,7 +157,7 @@ jobs: # targets: x86_64-unknown-linux-musl # - name: Install musl-tools # run: sudo apt-get update && sudo apt-get install -y musl-tools - # - run: cargo build --release --verbose --target x86_64-unknown-linux-musl + # - run: cargo build --release -p agit-cli --all-features --verbose --target x86_64-unknown-linux-musl # - run: | # mkdir -p release-musl # cp target/x86_64-unknown-linux-musl/release/agit release-musl/agit @@ -181,7 +181,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo build --release --verbose + - run: cargo build --release -p agit-cli --all-features --verbose - shell: pwsh run: | New-Item -ItemType Directory -Force -Path release | Out-Null @@ -206,7 +206,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo build --release --verbose + - run: cargo build --release -p agit-cli --all-features --verbose - run: | mkdir -p release-macos cp target/release/agit release-macos/agit