From efbd9d275b804854c47b6ed535ade8018d7c7350 Mon Sep 17 00:00:00 2001 From: marqdo-ci Date: Fri, 27 Nov 2026 13:37:49 +0800 Subject: [PATCH] ci: add the unified Woodpecker lane (published CLI/Bundle, one base image) 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. --- .woodpecker/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .woodpecker/ci.yml diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml new file mode 100644 index 0000000..11aa549 --- /dev/null +++ b/.woodpecker/ci.yml @@ -0,0 +1,29 @@ +# 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 + version="3.0.0-rc.5" + archive_sha="fd7a313e0ddaf38a9b1901ff2a9aa7b9a0a153e65522a9c0c60f01e2549f583b" + name="marqdo-${version}-x86_64-unknown-linux-gnu" + base="https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v3.0.0-rc.5" + curl -fsSL --retry 3 -o /tmp/marqdo.tar.gz "$base/$name.tar.gz" + echo "$archive_sha /tmp/marqdo.tar.gz" | sha256sum -c - + mkdir -p /opt/marqdo + tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo + export MARQDO_BIN="/opt/marqdo/$name/marqdo" + export MARQDO_STDLIB_DIR="/opt/marqdo/$name/stdlib" + "$MARQDO_BIN" --version + cd "$CI_WORKSPACE" + sh scripts/test.sh -- 2.54.1