From 46c64f901af4242f85105c315b07455ab9990464 Mon Sep 17 00:00:00 2001 From: billow Date: Fri, 10 May 2024 15:42:01 +0800 Subject: [PATCH] Try cache --- .github/workflows/rust.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8cb7656..6bf8da8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -36,12 +36,19 @@ jobs: rustup toolchain install nightly --profile minimal rustup default nightly - uses: actions/checkout@v4 + with: + path: rizin-rs - uses: Swatinem/rust-cache@v2 + with: + workspaces: "rizin-rs -> target" + cache-all-crates: "true" - name: Build + working-directory: rizin-rs run: | export LD_LIBRARY_PATH=${HOME}/.local/lib/$(uname -m)-linux-gnu:${HOME}/.local/lib:${HOME}/.local/lib64:${LD_LIBRARY_PATH} cargo build --verbose - name: Run tests + working-directory: rizin-rs run: | export LD_LIBRARY_PATH=${HOME}/.local/lib/$(uname -m)-linux-gnu:${HOME}/.local/lib:${HOME}/.local/lib64:${LD_LIBRARY_PATH} cargo test --verbose