From 7ece1af41ade6b90a38697fe8370f7e00c5c0a75 Mon Sep 17 00:00:00 2001 From: Edward Amsden Date: Fri, 8 Dec 2023 16:09:54 -0600 Subject: [PATCH] ci: cache rust dependencies --- .github/workflows/ares-shared.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ares-shared.yml b/.github/workflows/ares-shared.yml index 212857ce..9641fea8 100644 --- a/.github/workflows/ares-shared.yml +++ b/.github/workflows/ares-shared.yml @@ -21,6 +21,16 @@ jobs: with: extra_nix_config: "extra-experimental-features = nix-command flakes" + - name: Set cache key for dev env + run: export ARES_NIX_DEVSHELL_PATH=$(nix eval --raw ".#devShells.x86_64-linux.default.outPath") + + - name: Cache rust build artifacts + id: cache_rust + uses: Swatinem/rust-cache@v2 + with: + env-vars: "CARGO CC CFLAGX CXX CMAKE RUST ARES" + workspaces: "rust/ares -> target" + # Check formatting - name: Format run: |