From 20ba5523eeb96907d5210f5ee9bbae3d17487112 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 17 Oct 2025 01:12:39 +0200 Subject: [PATCH] ci(build): split tests from matrix builds to avoid repetition --- .woodpecker.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5c8d2fe..789932e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -35,6 +35,23 @@ steps: - cargo install cargo-audit --locked - cargo audit +--- +kind: pipeline +name: release-tests + +when: + event: tag + tag: v* + +steps: + - name: workspace-tests + image: rust:1.83 + commands: + - rustup component add llvm-tools-preview + - cargo install cargo-llvm-cov --locked + - cargo llvm-cov --workspace --all-features --summary-only + - cargo llvm-cov --workspace --all-features --lcov --output-path coverage.lcov --no-run + --- kind: pipeline name: release @@ -46,6 +63,9 @@ when: variables: - &rust_image 'rust:1.83' +depends_on: + - release-tests + matrix: include: # Linux @@ -80,14 +100,6 @@ matrix: EXT: ".exe" steps: - - name: tests - image: *rust_image - commands: - - rustup component add llvm-tools-preview - - cargo install cargo-llvm-cov --locked - - cargo llvm-cov --workspace --all-features --summary-only - - cargo llvm-cov --workspace --all-features --lcov --output-path coverage.lcov --no-run - - name: build image: *rust_image commands: