Skip to content

Commit 90fb897

Browse files
committed
init CI
1 parent 4a52f34 commit 90fb897

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/check_and_lint.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on: [push]
2+
3+
name: Check, Lint, Build
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
check-lint-build-stable:
10+
name: Check, Lint, Build (stable)
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 20
13+
# env:
14+
# RUSTFLAGS: -D warnings
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install latest stable toolchain
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
profile: minimal
21+
toolchain: stable
22+
components: rustfmt, clippy
23+
override: true
24+
target: x86_64-pc-windows-gnu
25+
26+
- name: Rust Cache
27+
uses: Swatinem/rust-cache@v2.5.1
28+
29+
- name: Rustfmt
30+
uses: actions-rs/cargo@v1
31+
with:
32+
command: fmt
33+
args: --all -- --check
34+
35+
- name: Cargo check
36+
uses: actions-rs/cargo@v1
37+
with:
38+
command: check
39+
40+
- name: Clippy
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: clippy
44+
args: --all-targets --all-features
45+
46+
- name: Build
47+
uses: actions-rs/cargo@v1
48+
with:
49+
command: build
50+
args: --release

0 commit comments

Comments
 (0)