-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 915 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
44
name: Rust Test to DejaGnu -- Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Cargo Build, Test, Clippy, Fmt
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Cargo Build
run: cargo build --verbose
- name: Cargo Test
run: cargo test --verbose
- name: Add rustup components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Cargo fmt
run: cargo fmt --all --check
- name: Clippy check
run: cargo clippy --all-targets --all-features