-
Notifications
You must be signed in to change notification settings - Fork 121
57 lines (52 loc) · 1.29 KB
/
ci_check.yml
File metadata and controls
57 lines (52 loc) · 1.29 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
50
51
52
53
54
55
56
57
name: Check
on:
push:
branches:
- master
paths:
- '**/Cargo.toml'
- '**/*.rs'
- '.github/workflows/ci_check.yml'
pull_request:
branches:
- master
paths:
- '**/Cargo.toml'
- '**/*.rs'
- '.github/workflows/ci_check.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- name: Setup Rust Toolchain
run: |
rustup default nightly
rustup component add clippy
- name: Check clippy
shell: bash
run: |
cargo clippy --all-features --all-targets -- -Dwarnings
- name: Check Docs
run: |
cargo doc --workspace --all-features --no-deps
check_stub:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Setup Rust Toolchain
run: |
rustup default nightly
- name: Check
shell: bash
# We only make sure that the stub driver compiles.
run: |
cargo check --features all,nightly,ring,sync --no-default-features --all-targets