forked from dergoegge/fuzzamoto
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 716 Bytes
/
rust.yml
File metadata and controls
32 lines (27 loc) · 716 Bytes
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
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose
- name: Build nyx
run: cargo build --verbose --features nyx
- name: Build misc features
run: cargo build --verbose --features reduced_pow,inherit_stdout
- name: Run tests
run: cargo test --verbose
- name: Check formatting for all crates
run: cargo fmt --all --check