ci: consume the shared Rust CI image #6

Merged
cflmy merged 1 commits from ci/image-lane into main 2026-11-27 14:15:06 +08:00
+26
View File
@@ -0,0 +1,26 @@
# 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: [push, pull_request, manual]
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:
- ./scripts/check-no-legacy.sh
- cargo fmt --all -- --check
- cargo clippy --all-targets --locked -- -D warnings
- cargo test --locked
- ./scripts/package-tool.sh
- $MARQDO_BIN tool install .cache/tool-bundle/tool.json
- $MARQDO_BIN tool list --json
- $MARQDO_BIN lint examples/nested/inventory.mq.md --format json
- $MARQDO_BIN tool remove lint