-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (45 loc) · 1.15 KB
/
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
44
45
46
47
on:
merge_group:
pull_request:
push:
branches:
- master
env:
CARGO_INCREMENTAL: false
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTDOCFLAGS: -Dwarnings
name: CI
jobs:
lint:
name: rust code lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-02-01
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: format style check
run: cargo fmt --all -- --check
- name: cargo clippy check
run: cargo clippy --all-targets --all-features -- -D warnings
- name: cargo check
run: cargo check
test:
name: Test Suite / ubuntu-latest
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-02-01
- uses: Swatinem/rust-cache@v2
- run: cargo test --no-default-features
self-host:
name: Test Suite
needs: lint
uses: RibirX/share-workflows/.github/workflows/ribir-win-image-tests.yaml@main