-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (35 loc) · 865 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
name: Rust Project CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- name: Update rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build crate
run: cargo build --release --verbose
- name: Test crate
run: cargo test --verbose
- name: Build docs
run: cargo doc --verbose
- name: Publish dry run
run: |
cargo check --verbose
cargo package --verbose
cargo publish --dry-run --verbose
- name: Run clippy
run: |
rustup component add clippy
cargo clippy --workspace