-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (37 loc) · 999 Bytes
/
ci.yml
File metadata and controls
47 lines (37 loc) · 999 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Rust CI
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: Rust CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v6
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}-ci
- name: Check
run: cargo check --all-features --locked
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-features --locked -- -W clippy::all -A clippy::missing_docs_in_private_items -A clippy::pedantic
- name: Build
run: cargo build --all-features --locked
- name: Test
run: cargo test --all-features --locked