-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (33 loc) · 811 Bytes
/
build.yml
File metadata and controls
34 lines (33 loc) · 811 Bytes
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
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build and test infc
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- nightly
steps:
- name: Setup Rust
uses: actions/checkout@v4.1.3
- name: Update Rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Install clippy nightly
run: rustup component add clippy-preview
- name: Install Cargo audit
run: cargo install cargo-audit
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Clippy
run: cargo clippy --verbose -- -D warnings
- name: Audit
run: cargo audit