forked from flyingcakes85/misato
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (74 loc) · 2 KB
/
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
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
name: Rust
'on':
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
env:
RUST_BACKTRACE: 1
jobs:
test:
name: 'Test Rust ${{ matrix.rust }} on ${{ matrix.os }}'
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
include:
- rust: stable
os: ubuntu-latest
- rust: stable
os: macos-latest
- rust: stable
os: windows-latest
- rust: stable-i686-msvc
os: windows-latest
- rust: stable-x86_64-pc-windows-msvc
os: windows-latest
- rust: beta
os: windows-latest
- rust: nightly
os: windows-latest
- rust: beta
os: macos-latest
- rust: nightly
os: macos-latest
- rust: beta
os: ubuntu-latest
- rust: nightly
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/[email protected]
with:
rust-version: '${{ matrix.rust }}'
- run: cargo test --verbose --workspace
- run: cargo test --verbose --workspace --all-features
- run: cargo test --verbose --workspace --no-default-features
- run: cargo build --verbose
- run: cargo run --verbose
clippy:
name: Lint with clippy
runs-on: ubuntu-latest
env:
RUSTFLAGS: '-Dwarnings'
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
components: clippy
- run: cargo clippy --workspace --all-targets --verbose
- run: cargo clippy --workspace --all-targets --verbose --no-default-features
- run: cargo clippy --workspace --all-targets --verbose --all-features
rustfmt:
name: Verify code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
components: rustfmt
- run: cargo fmt --all -- --check