Skip to content

Commit f4f035f

Browse files
authored
Create rust.yml
1 parent 30cd3ad commit f4f035f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/rust.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Rust CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test_interpol-rs:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Update local toolchain
20+
run: |
21+
rustup update
22+
rustup component add clippy
23+
rustup install nightly
24+
25+
- name: Toolchain info
26+
run: |
27+
cargo --version --verbose
28+
rustc --version
29+
cargo clippy --version
30+
31+
- name: Lint
32+
run: |
33+
cd interpol-rs
34+
cargo fmt -- --check
35+
cargo clippy -- -D warnings
36+
37+
- name: Test
38+
run: |
39+
cd interpol-rs
40+
cargo check
41+
cargo test --all
42+
43+
- name: Build
44+
run: |
45+
cd interpol-rs
46+
cargo build --release

0 commit comments

Comments
 (0)