Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c7e517121 | ||
|
|
37404dbc6a |
No files matched your search
+5
-17
@@ -1,25 +1,13 @@
|
||||
# Unified Woodpecker CI for a Rust component.
|
||||
#
|
||||
# One pinned Rust image is reused (glibc 2.41 so the published rc.5 CLI archive
|
||||
# runs) and the released CLI/Bundle is downloaded with a pinned SHA-256 instead
|
||||
# of rebuilding marqdo-cli or installing a toolchain per repository.
|
||||
# One published `marqdo-ci-rust` image (Rust 1.100, rustfmt/clippy, warm cargo
|
||||
# cache, released CLI/Bundle) is reused. No per-repository toolchain download or
|
||||
# CLI rebuild; the repository only runs its own CI entry.
|
||||
when:
|
||||
event: [push, pull_request, manual]
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: rust:1.100-trixie
|
||||
image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends ca-certificates curl git python3
|
||||
- rustup component add rustfmt clippy
|
||||
- |
|
||||
set -eu
|
||||
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
|
||||
scripts/ci.sh
|
||||
- scripts/ci.sh
|
||||
@@ -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