# Unified Woodpecker CI for a Rust Marqdo Tool. # # One published `marqdo-ci-rust` image contains the pinned toolchain and the # released CLI/Bundle (`MARQDO_BIN`, `MARQDO_STDLIB_DIR` preset); the lane only # runs this repository's own checks. No per-run rustup/apt/CLI download. when: - event: [pull_request, manual] - event: push branch: master steps: test: image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5 environment: MARQDO_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo MARQDO_STDLIB_DIR: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib MARQDO_TEST_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo MARQDO_TOOL_HOME: /tmp/marqdo-tool-home commands: - python3 tools/ci/test_release_metadata.py - python3 tools/ci/test_publish_gitea.py - cargo fmt --all -- --check - cargo clippy --workspace --all-targets --locked -- -D warnings - cargo test --workspace --locked - cargo build --release --locked - target/release/marqdo-knowledge --help minimum-rust: image: rust:1.89-bookworm when: - event: manual - event: [push, pull_request] path: include: ['**/*.rs', '**/Cargo.toml', Cargo.lock, '.cargo/**', '.woodpecker/**'] on_empty: true commands: - cargo check --locked --workspace --all-targets