From 6de4c120f17e74a7d677d07dbc568be39a9e0290 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 6 Jan 2024 19:25:19 +0100 Subject: [PATCH] Use artifacts to split jobs --- .gitea/workflows/gitea-ci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index 72c9002..c64ee93 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -22,6 +22,20 @@ jobs: - uses: actions/checkout@v3 - run: cargo build --all-features --all-targets - run: cargo test --all-features --all-targets --no-fail-fast + - uses: actions/upload-artifact@v3 + with: + name: cargo-target + path: ./target + + code_coverage: + name: Code Coverage + container: docker.io/drrobot/musichoard-ci:rust-1.75 + steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + with: + name: cargo-target + path: ./target - run: >- grcov target/debug/profraw --binary-path target/debug/