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