From 8dba0f5503bd3a1e56ff62bf510d2e9f2384fd2c Mon Sep 17 00:00:00 2001 From: chad Date: Wed, 4 Jun 2025 10:34:14 -0500 Subject: [PATCH] ci: make job smaller for coverage --- .github/workflows/coverage.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0e8d5609..fefca3ca 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -44,7 +44,19 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - name: Generate coverage - run: cargo llvm-cov --all-features --workspace --exclude atoma-p2p-tester --codecov --output-path codecov.json + run: | + # Set memory limits for the process + export RUSTFLAGS="-C link-arg=-Wl,-z,stack-size=8388608" + # Generate coverage with optimized settings + cargo llvm-cov \ + --all-features \ + --workspace \ + --exclude atoma-p2p-tester \ + --codecov \ + --output-path codecov.json \ + --no-report \ + --no-run \ + --no-fail-fast - name: Upload to Codecov uses: codecov/codecov-action@v5