From 7740dc2ca355a5c30aa574416b498bfb780ef28b Mon Sep 17 00:00:00 2001 From: moon3482 Date: Sat, 28 Feb 2026 00:12:12 +0900 Subject: [PATCH] perf(ci): add Cargo caching to Rust CI jobs Add Swatinem/rust-cache@v2 to rust and rust_xlang jobs to reduce CI execution time. Related to #2889 --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8071b79dac..9a7a4844d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -306,6 +306,10 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- + - name: Cache Cargo dependencies + uses: Swatinem/rust-cache@v2 + with: + workspaces: rust - name: Run Rust CI run: python ./ci/run_ci.py rust @@ -330,6 +334,10 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- + - name: Cache Cargo dependencies + uses: Swatinem/rust-cache@v2 + with: + workspaces: rust - name: Run Rust Xlang Test env: FORY_RUST_JAVA_CI: "1"