-
Notifications
You must be signed in to change notification settings - Fork 38
43 lines (30 loc) · 823 Bytes
/
ci.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
39
40
41
42
43
name: ci
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Install clippy and rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Build (debug)
run: cargo build --verbose
- name: Build (release)
run: cargo build --verbose --release
- name: Run tests (debug)
run: cargo test --verbose
- name: Run tests (release)
run: cargo test --verbose --release
- name: Check formatting
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy -- -D warnings