ci: run nix flake check with crane and a cached Nix store

Move fmt, clippy, tests, cargo package verification and the offline mock
smoke into flake checks built with crane, so the crate dependency build is
its own derivation that is reused until Cargo.lock changes. CI runs a single
nix flake check and restores /nix/store from the GitHub Actions cache via
nix-community/cache-nix-action, replacing the rustup + cargo test job.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013cfWL2GVg97oLfkNvPLaci
This commit is contained in:
Claude 2026-10-02 12:57:26 +00:00
commit f1ac1b94bb
No known key found for this signature in database
4 changed files with 110 additions and 62 deletions

1
result-1 Symbolic link
View file

@ -0,0 +1 @@
/nix/store/jh7j89lzmrvvhm44dv96znzlf522p2ac-idx-cli-test-0.2.4