Skip to content

Commit 6f65b39

Browse files
committed
ci: add cargo fmt check job
1 parent 9e8c250 commit 6f65b39

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

+22
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ env:
66
ENABLE_PYO3: 1
77

88
jobs:
9+
checks:
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout source code
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: true
17+
18+
- name: Install Rust toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
target: ${{ matrix.target }}
22+
profile: minimal
23+
components: rustfmt
24+
25+
- name: Check formatting
26+
uses: actions-rs/cargo@v1
27+
with:
28+
command: fmt
29+
args: -- --check
30+
931
build:
1032
strategy:
1133
fail-fast: false

0 commit comments

Comments
 (0)