We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7418314 commit d0cd70fCopy full SHA for d0cd70f
.github/workflows/rust-build.yml
@@ -0,0 +1,41 @@
1
+name: Rust build
2
+
3
+on:
4
+ push:
5
+ branches: ["master"]
6
+ paths:
7
+ - "src/**"
8
+ - "Cargo.*"
9
+ - "rustfmt.toml"
10
+ - ".github/**"
11
+ pull_request:
12
13
14
15
16
17
18
19
+env:
20
+ CARGO_TERM_COLOR: always
21
22
+jobs:
23
+ build:
24
+ runs-on: ubuntu-latest
25
+ env:
26
+ RUSTFLAGS: "-D warnings" # Fail compilation on any warnings
27
28
+ steps:
29
+ - uses: actions/checkout@v4
30
31
+ - uses: actions-rs/toolchain@v1
32
+ with:
33
+ toolchain: stable
34
+ components: clippy
35
+ override: true
36
37
+ - name: Build
38
+ run: cargo build --verbose
39
40
+ - name: Check formatting
41
+ run: cargo fmt --check
0 commit comments