ci: consume the shared Rust CI image
Replaces per-run rustup/apt/CLI setup with the published marqdo-ci-rust image (pinned toolchain, rustfmt/clippy, warm cargo cache and released CLI/Bundle).
This commit was merged in pull request #2.
This commit is contained in:
1 parent
e9fce68551
commit
3a001b5c31
1 file changed
+24
@@ -0,0 +1,24 @@
|
||||
# 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:
|
||||
- cargo fmt --all -- --check
|
||||
- cargo clippy --all-targets --locked -- -D warnings
|
||||
- cargo test --locked
|
||||
- cargo build --release --locked
|
||||
- ./target/release/marqdo-prove --version
|
||||
- ./scripts/package-tool.sh dist/marqdo-prove-tool
|
||||
- ls -l dist/marqdo-prove-tool/bin/marqdo-prove
|
||||
Reference in new issue
Block a user