-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 965 Bytes
/
cov.yml
File metadata and controls
41 lines (33 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Update coverage
on:
push:
branches: [ "release" ]
env:
BUILD_TYPE: Release
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup compiler
run: |
sudo apt-get update
sudo apt-get install -y g++-10
- name: Setup dependencies
run: |
sudo apt-get update
sudo apt-get install -y liburing-dev
- name: Configure CMake
run: |
cmake -B ${{github.workspace}}/build \
-DCMAKE_CXX_COMPILER=g++-10 \
-DNETCPP_TEST=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Google Test
working-directory: ${{github.workspace}}/build/bin
run: ./unitTest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}