1- name : CI on Linux
1+ name : Coverage
22
33on :
44 push :
@@ -20,29 +20,27 @@ concurrency:
2020 cancel-in-progress : false # PRs will be canceled by the clang-format CI
2121
2222env :
23- CMAKE_VERSION : 3.16.9
2423 SHARG_NO_VERSION_CHECK : 1
2524 TZ : Europe/Berlin
2625
2726defaults :
2827 run :
29- shell : bash -ex {0}
28+ shell : bash -Eexuo pipefail {0}
3029
3130jobs :
3231 build :
3332 name : ${{ matrix.name }}
3433 runs-on : ubuntu-22.04
3534 timeout-minutes : 120
36- if : github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'clang-format '
35+ if : github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint '
3736 strategy :
3837 fail-fast : true
3938 matrix :
4039 include :
41- - name : " Coverage gcc12"
42- cxx : " g++-12"
43- cc : " gcc-12"
40+ - name : " gcc13"
41+ compiler : " gcc-13"
4442 build : coverage
45- build_type : Debug
43+ build_type : Coverage
4644
4745 steps :
4846 # How many commits do we need to fetch to also fetch the branch point?
@@ -57,58 +55,23 @@ jobs:
5755 fetch-depth : ${{ steps.fetch_depth.outputs.depth }}
5856 submodules : true
5957
60- # To reuse scripts
61- - name : Checkout SeqAn3
62- uses : actions/checkout@v3
58+ - name : Setup toolchain
59+ uses : seqan/actions/setup-toolchain@main
6360 with :
64- repository : seqan/seqan3
65- ref : aa3df18a6df59679e07e9fe2de4e0998a94af7e7
66- path : seqan3
67- fetch-depth : 1
68- submodules : false
69-
70- - name : Configure APT
71- continue-on-error : true
72- run : bash ./seqan3/.github/workflows/scripts/configure_apt.sh
61+ compiler : ${{ matrix.compiler }}
62+ ccache_size : 125M
7363
7464 - name : Install CMake
75- run : bash ./seqan3/.github/workflows/scripts/install_cmake.sh
76-
77- - name : Install ccache
78- run : |
79- conda install --yes --override-channels --channel conda-forge ccache
80- sudo ln -s $CONDA/bin/ccache /usr/bin/ccache
81-
82- - name : Install compiler ${{ matrix.cxx }}
83- run : sudo apt-get install --yes ${{ matrix.cxx }}
65+ uses : seqan/actions/setup-cmake@main
66+ with :
67+ cmake : 3.16.9
8468
8569 - name : Install gcovr
86- env :
87- CC : ${{ matrix.cc }}
8870 run : |
8971 sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/${CC/gcc/gcov} 100
90- pip install gcovr==5.0
91-
92- - name : Load ccache
93- uses : actions/cache@v3
94- with :
95- path : .ccache
96- key : ${{ runner.os }}-${{ matrix.name }}-ccache-${{ github.ref }}-${{ github.run_number }}
97- # Restoring: From current branch, otherwise from base branch, otherwise from any branch.
98- restore-keys : |
99- ${{ runner.os }}-${{ matrix.name }}-ccache-${{ github.ref }}
100- ${{ runner.os }}-${{ matrix.name }}-ccache-${{ github.base_ref }}
101- ${{ runner.os }}-${{ matrix.name }}-ccache-
102-
103- - name : Tool versions
104- run : |
105- env cmake --version
106- env ${{ matrix.cxx }} --version
72+ pip install gcovr==6.0
10773
10874 - name : Configure tests
109- env :
110- CXX : ${{ matrix.cxx }}
111- CC : ${{ matrix.cc }}
11275 run : |
11376 mkdir sharg-build
11477 cd sharg-build
@@ -120,13 +83,8 @@ jobs:
12083
12184 - name : Build tests
12285 env :
123- CCACHE_BASEDIR : ${{ github.workspace }}
124- CCACHE_DIR : ${{ github.workspace }}/.ccache
125- CCACHE_COMPRESS : true
126- CCACHE_COMPRESSLEVEL : 12
127- CCACHE_MAXSIZE : 125M
12886 CCACHE_IGNOREOPTIONS : " -fprofile-abs-path"
129- GCOV : ${{ github.workspace }}/seqan3 /.github/workflows/scripts/gcov.sh
87+ GCOV : ${{ github.workspace }}/sharg /.github/workflows/scripts/gcov.sh
13088 run : |
13189 ccache -z
13290 cd sharg-build
0 commit comments