From 41212b85287625a17294df207252bb44cc5a7615 Mon Sep 17 00:00:00 2001 From: Yifan Gao Date: Mon, 15 Dec 2025 04:47:17 +0800 Subject: [PATCH] ci: Update GitHub Actions cache to v5, refine key, and add restore keys for cargo bins. --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bb2233d..4b1ebea8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,9 +19,11 @@ jobs: - uses: cargo-bins/cargo-binstall@main - run: sudo apt-get install -y tree jq axel - uses: extractions/setup-just@v3 - - uses: actions/cache@v3 + - uses: actions/cache@v5 with: - key: ${{ runner.os }}-build-dependencies + key: ${{ runner.os }}-cargo-bin-${{ hashFiles('justfile') }} + restore-keys: | + ${{ runner.os }}-cargo-bin- path: | ~/.cargo/bin - run: just dependency