-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (38 loc) · 1.12 KB
/
Copy pathcoverage.yml
File metadata and controls
44 lines (38 loc) · 1.12 KB
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
42
43
44
name: cuSZp codecov report
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.2.0-devel-ubuntu22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install -y cmake g++ make gcovr lcov git curl
- name: Build with coverage
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_CUDA_FLAGS="-Xcompiler --coverage" \
-DCMAKE_EXE_LINKER_FLAGS="--coverage" \
-DCMAKE_SHARED_LINKER_FLAGS="--coverage"
make -j$(nproc) && make install
- name: Run tests
run: |
cd build
ctest -V || true
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/
flags: unittests
name: cuSZp
fail_ci_if_error: true