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 7ece1af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ares-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 7ece1af

Please sign in to comment.