3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-19 00:19:32 +00:00

Convert to using LLVM code coverage

This commit is contained in:
Miodrag Milanovic 2026-05-15 11:59:22 +02:00
parent 6ac8758e7e
commit 8022b5445b
3 changed files with 22 additions and 10 deletions

View file

@ -44,6 +44,14 @@ jobs:
- name: Runtime environment
run: |
echo "procs=$(nproc)" >> $GITHUB_ENV
mkdir -p "${GITHUB_WORKSPACE}/coverage"
echo "LLVM_PROFILE_FILE=${GITHUB_WORKSPACE}/coverage/coverage_%p.profraw" >> $GITHUB_ENV
echo "LLVM_PROFILE_FILE_BUFFER_SIZE=0" >> $GITHUB_ENV
- name: Skip generating files
if: ${{ github.event_name != 'merge_group' && github.event_name != 'workflow_dispatch' }}
run: |
echo "LLVM_PROFILE_FILE=/dev/null" >> $GITHUB_ENV
- name: Build Yosys
run: |
@ -89,6 +97,7 @@ jobs:
if: ${{ github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' }}
run: |
make coverage
make clean_coverage
- name: Push coverage
if: ${{ github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' }}