-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (38 loc) · 1.11 KB
/
Copy pathci-rust.yml
File metadata and controls
49 lines (38 loc) · 1.11 KB
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
name: Rust
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: free up disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/share/swift /opt/ghc /usr/local/.ghcup
- run: rustup toolchain install stable --profile minimal --no-self-update
- uses: Swatinem/rust-cache@v2
- name: Code linting
continue-on-error: true
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Code formatting
continue-on-error: true
run: cargo fmt --all --check
- name: Build
continue-on-error: true
run: cargo build
- name: Run tests
continue-on-error: true
run: cargo test --workspace --all-features --all-targets
- name: Check docs
continue-on-error: true
env:
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
run: cargo doc --package am4 --all-features --no-deps