-
Notifications
You must be signed in to change notification settings - Fork 4
25 lines (25 loc) · 830 Bytes
/
coverage.yml
File metadata and controls
25 lines (25 loc) · 830 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
name: Coverage
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev
- uses: mlugg/setup-zig@v2
with:
version: "0.15.2"
- name: Install kcov
run: |
sudo apt-get install -y cmake g++ pkg-config \
libdw-dev libcurl4-openssl-dev libiberty-dev
curl -sSL https://github.com/SimonKagstrom/kcov/archive/refs/tags/v43.tar.gz | tar xz
cd kcov-43
cmake -S . -B build
cmake --build build -j$(nproc)
sudo cmake --install build
- run: bash scripts/coverage.sh
- uses: codecov/codecov-action@v4
with:
directory: kcov-output