ci: add the unified Woodpecker lane
Reuse rust:1.100-trixie (glibc 2.41) and the published rc.5 CLI/Bundle with a pinned SHA-256; no per-repository toolchain download, no CLI rebuild.
This commit was merged in pull request #5.
This commit is contained in:
1 parent
86a260c646
commit
982c2cdb77
1 file changed
+25
@@ -0,0 +1,25 @@
|
|||||||
|
# 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.
|
||||||
|
when:
|
||||||
|
event: [push, pull_request, manual]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
image: rust:1.100-trixie
|
||||||
|
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
|
||||||
Reference in new issue
Block a user