-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 971 Bytes
/
rust.yml
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
name: Rust CI
on:
push:
branches: [ '*', '*/*' ]
jobs:
test:
name: Test for Rust ${{ matrix.rustver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rustver: ['1.80.1', stable]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rustver }}
- run: cargo test -- --show-output
cover:
name: Coverage for Rust ${{ matrix.rustver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rustver: [stable]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rustver }}
components: llvm-tools-preview
- run: cargo install cargo-llvm-cov
- run: cargo llvm-cov