From a9690636ca32ee4b59b15336448cd8db2335e4bb Mon Sep 17 00:00:00 2001 From: AI Agent Date: Tue, 24 Nov 2026 15:19:41 +0000 Subject: [PATCH] ci: add spindles workflow for fmt, clippy, and tests Runs format check, clippy -D warnings, and cargo test on every push and pull request. Toolchain pinned to clang via nixery dependencies so the vendored DuckDB C++ sources get a consistent compiler; cargo registry and(target dir cached keyed on Cargo.lock to avoid recompiling the dependency graph on every run. --- .tangled/workflows/ci.yml | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .tangled/workflows/ci.yml diff --git a/.tangled/workflows/ci.yml b/.tangled/workflows/ci.yml new file mode 100644 index 0000000..6edbe75 --- /dev/null +++ b/.tangled/workflows/ci.yml @@ -0,0 +1,44 @@ +# Code Crime — build and test pipeline. +# +# Engine: nixery (fresh container per step, shared /tangled/workspace). +# The DuckDB C++ sources bundled via libduckdb-sys need a C++ toolchain +# (clang), plus git for the repository-dependent fixture tests. +when: + - event: push + - event: pull_request + +engine: nixery + +dependencies: + - cargo + - rustfmt + - clippy + - clang + - git + +cache: + - key: cargo-registry + paths: + - .cargo-home/registry + - .cargo-home/git + - key: cargo-target + hash: + - Cargo.lock + paths: + - target + +environment: + CARGO_HOME: /tangled/workspace/.cargo-home + CARGO_TARGET_DIR: /tangled/workspace/target + CC: clang + CXX: clang++ + +steps: + - name: format + command: cargo fmt --all --check + + - name: lint + command: cargo clippy --all-targets -- -D warnings + + - name: test + command: cargo test --all -- knotmirror 0.0.1