forked from qicosmos/iguana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a79e206
commit b373044
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Ubuntu 22.04 (llvm cov) | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get install openssl | ||
sudo apt-get install libssl-dev | ||
sudo apt-get install llvm | ||
- name: Run Coverage Script | ||
run: bash coverage_gen.sh llvm | ||
|
||
- name: Upload Coverage Results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: llvm-cov | ||
path: ${{ github.workspace }}/.coverage_llvm_cov | ||
|
||
- name: Create Code Coverage Report | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
echo "Code Coverage Report" > tmp.log | ||
echo "for detail, [goto summary](https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/runs/${{github.run_id}}) download Artifacts `llvm-cov`" >> tmp.log | ||
echo "\`\`\`" >> tmp.log | ||
llvm-cov report ./tests/test_rpc -instr-profile=test_rpc.profdata -ignore-filename-regex="thirdparty|tests" -show-region-summary=false >> tmp.log | ||
echo "\`\`\`" >> tmp.log | ||
- name: Create Comment | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body-file: '${{github.workspace}}/build/tmp.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters