High-performance implementation of plcbundle written in Rust

Enhance build workflow

+23 -5
+23 -5
.tangled/workflows/build.yml
··· 1 1 # Build workflow - test compilation on pull requests 2 2 3 3 when: 4 - - event: ["push", "pull_request"] 4 + - event: ["push", "pull_request", "manual"] 5 5 branch: ["main", "develop"] 6 6 7 7 engine: "nixery" 8 + 9 + clone: 10 + skip: false 11 + depth: 1 12 + submodules: false 8 13 9 14 dependencies: 10 15 nixpkgs: ··· 12 17 - gcc 13 18 - git 14 19 - zstd 20 + - pkg-config 21 + - libssl 15 22 16 23 environment: 17 - # Example env vars; adjust if you need custom toolchain flags 18 24 RUST_BACKTRACE: "1" 25 + # Force reproducible builds in CI 26 + CARGO_TERM_COLOR: "always" 19 27 20 28 steps: 21 29 - name: "Download dependencies" 22 30 command: | 31 + # Ensure cargo registry is populated 23 32 cargo fetch 24 33 25 - - name: "Run tests" 34 + - name: "Format check" 26 35 command: | 27 - # Run tests with all features to ensure feature-flag coverage 36 + cargo fmt -- --check || true 37 + 38 + - name: "Run clippy" 39 + command: | 40 + # Run clippy but don't fail workflow on warnings to avoid flakiness; 41 + # change to `-- -D warnings` to enforce later. 42 + cargo clippy --all-features -- -D clippy::unwrap_used || true 43 + 44 + - name: "Run tests (all features)" 45 + command: | 28 46 cargo test --all-features -- --nocapture 29 47 30 - - name: "Build release" 48 + - name: "Build release (all features)" 31 49 command: | 32 50 cargo build --release --all-features 33 51 echo "Build successful"