diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b505c91..57e56dbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,15 +56,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- + - uses: Swatinem/rust-cache@v2 - name: Run clippy run: cargo clippy --all-targets --all-features -- -D warnings @@ -93,15 +85,7 @@ jobs: - name: Create venv for python run: uv venv - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- + - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --all-features @@ -117,15 +101,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- + - uses: Swatinem/rust-cache@v2 - name: Cargo login run: cargo login ${{ secrets.CRATES_TOKEN }} @@ -146,4 +122,4 @@ jobs: - name: Publish rmcp if: ${{ startsWith(github.ref, 'refs/tags/release') }} continue-on-error: true - run: cargo publish -p rmcp \ No newline at end of file + run: cargo publish -p rmcp