Author SHA1 Message Date
marqdo-ci 3f8e591ce5 ci: avoid a shell-variable-looking token in the workflow comment
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline was successful
Woodpecker parses shell-style variables throughout the command strings, including
comments; keep the pinned values literal so pipeline config parsing succeeds.
2026-11-27 13:44:54 +08:00
marqdo-ci 73fcf769c1 ci: keep the pinned archive path literal
Woodpecker expands ${...} in commands, which left the version empty. Use the
exact released archive path/SHA so the unified lane is reproducible.
2026-11-27 13:43:51 +08:00
marqdo-ci f4939c2862 ci: add the unified Woodpecker lane (published CLI/Bundle, one base image)
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/manual/ci Pipeline is pending
Reuse the released marqdo rc.5 archive and Bundle with a pinned SHA-256 in
ubuntu:24.04; no Rust toolchain download, no CLI build, no sibling checkout.
This keeps component CI independent and cheap while testing the real CLI.
2026-11-27 13:37:41 +08:00
+26
View File
@@ -0,0 +1,26 @@
# Unified Woodpecker CI for a source-only Marqdo component.
#
# One base image and one published CLI/Bundle artifact are reused; this repo
# never downloads a Rust toolchain, builds marqdo-cli, or discovers sibling
# checkouts. The archive SHA-256 is pinned to the released rc.5 artifact.
when:
event: [push, pull_request, manual]
steps:
test:
image: ubuntu:24.04
commands:
- apt-get update
- apt-get install -y --no-install-recommends ca-certificates curl git python3 build-essential
- |
set -eux
# Keep these as literal values: Woodpecker expands shell-style variables.
curl -fsSL --retry 3 -o /tmp/marqdo.tar.gz "https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v3.0.0-rc.5/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu.tar.gz"
echo "fd7a313e0ddaf38a9b1901ff2a9aa7b9a0a153e65522a9c0c60f01e2549f583b /tmp/marqdo.tar.gz" | sha256sum -c -
mkdir -p /opt/marqdo
tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo
export MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
export MARQDO_STDLIB_DIR=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib
"$MARQDO_BIN" --version
cd "$CI_WORKSPACE"
sh scripts/test.sh