-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (50 loc) · 1.38 KB
/
Copy pathcoverage.yml
File metadata and controls
61 lines (50 loc) · 1.38 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: coverage
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 18 * * *"
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: llvm-tools
- name: Install valgrind on Linux
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y valgrind
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: actions/checkout@v4
if: runner.os == 'Linux'
with:
repository: ctz/intel-sde
path: thirdparty/intel-sde
persist-credentials: false
- name: Set up Intel SDE
if: runner.os == 'Linux'
run: |
echo "PATH=$(pwd)/thirdparty/intel-sde:$PATH" >> $GITHUB_ENV
- name: Measure coverage
run: ./admin/coverage --lcov --output-path final.info
- name: Report to codecov.io
uses: codecov/codecov-action@v5
with:
files: final.info
token: ${{ secrets.CODECOV_TOKEN }}