From edaac119757f3576aef22921dd366f03009b8917 Mon Sep 17 00:00:00 2001 From: ananthu3375 <148377620+ananthu3375@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:54:49 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5030bffe..ca9807e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" @@ -200,12 +200,12 @@ 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' }} @@ -213,12 +213,12 @@ jobs: 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' }} @@ -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' }}