-
Notifications
You must be signed in to change notification settings - Fork 7
84 lines (80 loc) · 2.08 KB
/
ci.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
on:
push:
branches: [main, master]
pull_request:
name: ci
jobs:
required:
runs-on: ubuntu-latest
name: ubuntu-latest / ${{ matrix.toolchain }}
strategy:
fail-fast: false
matrix:
include:
- toolchain: stable
try-build: overwrite # wip
- toolchain: beta
try-build: overwrite
- toolchain: nightly
try-build: overwrite
- toolchain: 1.59.0 # MSRV
try-build: overwrite
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
env:
TRYBUILD: ${{ matrix.try-build }}
os-check:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / stable
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
env:
TRYBUILD: overwrite
coverage:
runs-on: ubuntu-latest
name: ubuntu-latest / stable / coverage
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: llvm-tools-preview
- name: cargo install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: cargo llvm-cov
uses: actions-rs/cargo@v1
with:
command: llvm-cov
args: --locked --all-features --lcov --output-path lcov.info
env:
TRYBUILD: overwrite
- name: codecov.io
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true