-
Notifications
You must be signed in to change notification settings - Fork 43
44 lines (40 loc) · 1.04 KB
/
ci_check.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
name: Check
on:
push:
branches:
- master
pull_request:
branches:
- master
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@v4
- name: Setup Rust Toolchain
run: |
rustup default nightly
rustup component add clippy
- uses: actions/setup-go@v4
with:
go-version: '>=1.18'
- name: Install NASM on Windows
if: runner.os == 'Windows'
uses: ilammy/setup-nasm@v1
- name: Install ninja-build tool on Windows
if: runner.os == 'Windows'
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Check clippy
run: |
cargo clippy --all-features --all-targets -- -Dwarnings
- name: Check Docs
run: |
cargo doc --workspace --all-features --no-deps