Skip to content

Commit

Permalink
Merge pull request #162 from vil02/fix_generate_reports
Browse files Browse the repository at this point in the history
chore: fix `generate_reports`
  • Loading branch information
vil02 authored Nov 17, 2024
2 parents 716ad3d + 86ac1e2 commit 8b9c0db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/generate_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ name: generate_reports

'on':
workflow_dispatch:
schedule:
- cron: '7 9 1 * *'

env:
scripts_path: ${{github.workspace}}/scripts
gxx: g++-10
clangxx: clang++-11
gxx: g++
clangxx: clang++

jobs:
generate_reports:
Expand All @@ -23,11 +25,6 @@ jobs:
sudo apt-get update
sudo apt-get install libboost-all-dev
- name: Install compilers
run: |
sudo apt-get install ${{env.gxx}}
sudo apt-get install ${{env.clangxx}}
- name: Install lcov
run: |
sudo apt-get install lcov
Expand All @@ -39,7 +36,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Create virtual environment
run: |
python3 -m venv ./venv
source ./venv/bin/activate
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
- name: Install gcovr
run: |
Expand All @@ -62,8 +65,8 @@ jobs:
./run_gcovr_sonarqube.sh
./run_gcovr_cobertura.sh
./run_lcov_and_genhtml.sh
# ./generate_raw_coverage_data_clangxx.sh
# ./run_llvm-cov.sh
./generate_raw_coverage_data_clangxx.sh
./run_llvm-cov.sh
- name: Upload generated reports
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_raw_coverage_data_clangxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ output_dir=$(./get_clangxx_coverage_data_path.sh) ||
}
readonly output_dir

./generate_raw_coverage_data.sh clang++-11 "$output_dir" ||
./generate_raw_coverage_data.sh clang++ "$output_dir" ||
{
printf "Cannot generate coverage data\n"
exit 1
Expand Down

0 comments on commit 8b9c0db

Please sign in to comment.