Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08685d85f1 | ||
|
|
c4b03be2df | ||
|
|
aaaa9e3654 | ||
|
|
c21e1a9d8a | ||
|
|
bf5978c652 |
No files matched your search
@@ -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
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Fast-path notification: a completed Gitea release asks the root reconcile
|
||||||
|
# workflow to check it. The payload is only a hint; the root reconcile verifies
|
||||||
|
# the release/assets from the authoritative Gitea API. A lost call is recovered
|
||||||
|
# by the root `release-reconcile` cron.
|
||||||
|
when:
|
||||||
|
event: [release]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
notify:
|
||||||
|
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5
|
||||||
|
environment:
|
||||||
|
WOODPECKER_TOKEN:
|
||||||
|
from_secret: woodpecker_token
|
||||||
|
commands:
|
||||||
|
- |
|
||||||
|
set -eu
|
||||||
|
test -n "${WOODPECKER_TOKEN:?woodpecker_token secret missing}"
|
||||||
|
curl -fsS -X POST -H "Authorization: Bearer $WOODPECKER_TOKEN" -H "Content-Type: application/json" -d '{"branch":"main","workflow":"reconcile"}' https://ci.cflmy.cn/api/repos/6/pipelines
|
||||||
Reference in new issue
Block a user