Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthu3375 authored Jul 23, 2024
1 parent 4a8d78f commit edaac11
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
compiler: ${{ matrix.compiler }}
vcvarsall: ${{ contains(matrix.os, 'windows' )}}
cmake: true
# brew: true
# brew: true
conan: "2.2.2"
ccache: true
gcovr: "7.2"
Expand All @@ -200,25 +200,25 @@ jobs:
run: |
brew install glfw
# - name: Remove existing GCC and G++
# - name: Remove existing GCC and G++
# if: ${{ runner.os == 'Linux' }}
# run: |
# sudo apt-get update
# sudo apt-get update
# sudo apt-get remove --purge -y gcc g++
# sudo apt-get autoremove -y
# sudo apt-get autoremove -y

- name: Setup Linux
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt install -y libglfw3-dev libglfw3
# - name: Setup Linux
# if: ${{ runner.os == 'Linux' }}
# run: |
# sudo apt-get update
# if: ${{ runner.os == 'Linux' }}
# run: |
# sudo apt-get update
# sudo apt install -y gcc-11 g++-11 libglfw3-dev libglfw3
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11.4.0 11
# sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11.4.0 11
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11.4.0 11
# sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11.4.0 11

- name: Setup Windows
if: ${{ runner.os == 'Windows' }}
Expand Down Expand Up @@ -269,13 +269,19 @@ jobs:
run: |
ctest -C ${{matrix.build_type}} --output-on-failure --timeout 180
# - name: Coverage
# if: ${{ runner.os != 'Windows' && matrix.build_type == 'Debug' }}
# run: |
# pip install gcovr==7.2
# mkdir -p build/coverage
# find ./build -name "*.gcno" -o -name "*.gcda" > /dev/null
# gcovr --config doc/coverage/gcovr.cfg --gcov-executable '${{ matrix.gcov_executable }}' --merge-mode-functions=merge-use-line-0

- name: Coverage
if: ${{ runner.os != 'Windows' && matrix.build_type == 'Debug' }}
run: |
pip install gcovr==7.2
mkdir -p build/coverage
find ./build -name "*.gcno" -o -name "*.gcda" > /dev/null
gcovr --config doc/coverage/gcovr.cfg --gcov-executable '${{ matrix.gcov_executable }}' --merge-mode-functions=merge-use-line-0 --verbose
gcovr --config doc/coverage/gcovr.cfg --gcov-executable '${{ matrix.gcov_executable }}'
- name: Debug gcov
if: ${{ runner.os != 'Windows' && matrix.build_type == 'Debug' }}
Expand Down

0 comments on commit edaac11

Please sign in to comment.