From 1f69ee8bd67eb937db78ec1cd2a0105b0167a856 Mon Sep 17 00:00:00 2001 From: gabrielbosio Date: Thu, 26 Sep 2024 10:29:42 -0300 Subject: [PATCH] Add Rust caching in Go workflow --- .github/workflows/build-go.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-go.yml b/.github/workflows/build-go.yml index 51f75e620..2b9353ddb 100644 --- a/.github/workflows/build-go.yml +++ b/.github/workflows/build-go.yml @@ -32,6 +32,16 @@ jobs: toolchain: stable components: rustfmt, clippy override: true + - name: Cache Rust dependencies + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + batcher/target + key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-rust- - name: Build SP1 bindings run: make build_sp1_linux - name: Build Risc Zero go bindings