-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 876 Bytes
/
rust.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
name: Rust CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build on ${{ matrix.os }}.
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update Linux dependencies
run: sudo apt update
if: contains(matrix.os, 'ubuntu')
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Build
run: cargo build --verbose --all-features
- name: Clippy
run: cargo clippy --verbose --all-features -- -D warnings
- name: Audit
run: cargo audit --deny warnings