-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 907 Bytes
/
ci.yaml
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: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0 # TODO: remove this when we cache the builds
RUSTFLAGS: "-Dwarnings"
jobs:
ci:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Rust
run: rustup update
- name: build
run: cargo build --all --release
- name: check
run: cargo check --all --release
- name: clippy
run: cargo clippy --all-targets --release
- name: doc
run: cargo doc --workspace --all-features --no-deps
- name: test
run: cargo test --release --all-targets
shell: bash