From 91980aa42efb9da17e74c50bb79caa7c9ca6dc34 Mon Sep 17 00:00:00 2001 From: xxchan Date: Fri, 27 Dec 2024 19:14:10 +0800 Subject: [PATCH] ci: add rust-cache action (#844) --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38f450bf7..c56a25cf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,9 @@ jobs: with: rust-version: ${{ env.rust_msrv }} + - name: Cache Rust artifacts + uses: Swatinem/rust-cache@v2 + - name: Build run: make build @@ -96,6 +99,10 @@ jobs: - windows-latest steps: - uses: actions/checkout@v4 + + - name: Cache Rust artifacts + uses: Swatinem/rust-cache@v2 + - name: Build run: cargo build -p iceberg --no-default-features @@ -109,6 +116,9 @@ jobs: with: rust-version: ${{ env.rust_msrv }} + - name: Cache Rust artifacts + uses: Swatinem/rust-cache@v2 + - name: Test run: cargo test --no-fail-fast --all-targets --all-features --workspace