-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.4 KB
/
std-dev.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
on:
push:
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checking out sources
uses: actions/checkout@v3
- name: Installing Rust toolchain
run: rustup toolchain install stable
- uses: Swatinem/rust-cache@v2
- name: Checking formatting
run: cargo fmt --check
- name: Checking lints
run: cargo clippy --all-targets -- -D warnings
- name: Checking lints with all features
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Checking doc references
uses: Icelk/rustdoc-link-check@v2
with:
private: true
- name: Testing project
run: cargo test
build:
needs: [check]
runs-on: ubuntu-latest
steps:
- name: Checking out sources
uses: actions/checkout@v3
- name: Installing Rust toolchain
run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Compiling
run: cargo rustc --release
- name: Upload binary artefact (Linux)
uses: actions/upload-artifact@v3
with:
name: std-dev
path: target/release/std-dev