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
name: Coverage
on:
push:
branches:
- 'master'
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- run: sudo apt update && sudo apt-get -qq install musl-tools
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cargo update
run: cargo update
- name: Get musl
run: rustup target add x86_64-unknown-linux-musl
- uses: actions-rs/cargo@v1
with:
command: check
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- run: sudo apt update && sudo apt-get -qq install musl-tools
- name: Checkout sources
uses: actions/checkout@v6
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Get musl
run: rustup target add x86_64-unknown-linux-musl
- name: Test coverage
run: make coverage
- name: Upload coverage results
uses: stefanzweifel/git-auto-commit-action@v7
with:
branch: coverage
create_branch: true
commit_message: Update coverage
push_options: '--force'