-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.15 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
name: CI
on:
push:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
job:
- { os: ubuntu-latest, toolchain: stable }
- { os: windows-latest, toolchain: stable }
- { os: macos-latest, toolchain: stable }
- { os: ubuntu-latest, toolchain: nightly }
- { os: windows-latest, toolchain: nightly }
- { os: macos-latest, toolchain: nightly }
runs-on: ${{ matrix.job.os }}
name: Test on ${{ matrix.job.os }} with ${{ matrix.job.toolchain }}
steps:
- name: Setup toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.job.toolchain }}
default: true
override: true
profile: minimal
components: rustfmt, clippy
- name: Build info
run: |
rustc --version
cargo --version
rustup --version
- name: Checkout
uses: actions/checkout@v3
- name: Check
run: |
cargo fmt --check --all
cargo check --workspace
cargo clippy --all
- name: Test
run: |
cargo test