Skip to content

Commit

Permalink
ci: cache rust dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eamsden committed Dec 8, 2023
1 parent 8ab473d commit ded575b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ares-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ 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"

- name: Rust cache hit?
run: |
echo "Rust cache hit: ${{steps.cache_rust.cache-hit}}"
# Check formatting
- name: Format
run: |
Expand Down

0 comments on commit ded575b

Please sign in to comment.