Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -105,6 +105,8 @@ jobs:
shell: bash
run: |
echo "RUSTFLAGS=-C opt-level=3 -D warnings -C instrument-coverage -C linker=clang -C link-arg=-fuse-ld=$(pwd)/mold/bin/mold" >> $GITHUB_ENV
# Disable coverage when building
echo "LLVM_PROFILE_FILE=/dev/null" >> $GITHUB_ENV
- name: Setup grcov
run: |
wget https://github.com/mozilla/grcov/releases/download/v${{ env.GRCOV_VERSION }}/grcov-x86_64-unknown-linux-gnu.tar.bz2
@@ -116,9 +118,10 @@ jobs:
uses: ./.github/workflow-templates/cargo-build
with:
features: evm-tracing
- name: Clean-up possible coverage generated during builds
- name: Enable coverage gathering
run: |
rm default_*.profraw
# Enable coverage when running tests
echo "LLVM_PROFILE_FILE=$(pwd)/proffiles/default_%m_%p.profraw" >> $GITHUB_ENV
- name: Unit tests
run: |
# curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
@@ -134,14 +137,6 @@ jobs:
- name: Retrieve coverage
id: coverage
run: |
mkdir -p /tmp/proffiles
find . -type f -name \*.profraw -exec ls -l {} \;
echo "Copying profraw files to /tmp/proffiles"
find . -name \*.profraw -exec mv {} /tmp/proffiles/ \;
mv /tmp/proffiles proffiles
du -sh proffiles
echo "Executing grcov"

0 comments on commit aae35be

Please sign in to comment.