From f3fc55eb8d38367d97b98c81c4f570c264c984cb Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sat, 10 Aug 2024 08:19:46 +0300 Subject: [PATCH] github: Cache Rust build dependencies Let's use a Github action to cache build dependencies in hopes to reduce disk utilization. --- .github/workflows/rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 17e15a17c..e40845728 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/checkout@v2 - name: Check formatting run: cargo fmt --check + build-native: strategy: matrix: @@ -24,6 +25,7 @@ jobs: runs-on: ${{ matrix.os }} steps: + - uses: Swatinem/rust-cache@v2 - uses: actions/checkout@v3 - name: Build run: cargo build --verbose