-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (50 loc) · 1.27 KB
/
lint_and_build.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
48
49
50
51
52
name: Lint and Check
on:
push:
paths-ignore:
- '.gitignore'
- '.dockerignore'
- '.env.dist'
- '.github/dependabot.yml'
- '.github/workflows/release.yml'
- 'Dockerfile'
- 'LICENSE'
- 'README.md'
pull_request:
paths-ignore:
- '.gitignore'
- '.dockerignore'
- '.env.dist'
- '.github/dependabot.yml'
- '.github/workflows/release.yml'
- 'Dockerfile'
- 'LICENSE'
- 'README.md'
jobs:
check:
#strategy:
#matrix:
#include:
#- os: ubuntu-latest
#- os: macos-latest
#- os: windows-latest
#runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@master
with:
components: rustfmt,clippy
toolchain: nightly # we want to know if it breaks with the newest nightly
# toolchain: nightly-2024-02-17
- name: fmt
run: cargo fmt --check
- name: clippy
run: cargo clippy --no-deps --all-features
- name: check
run: cargo check
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
- name: check on stable Rust
run: cargo check