Skip to content

Commit 3b8c7e2

Browse files
committed
Add a code style checking CI script
1 parent ef125f9 commit 3b8c7e2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/style_check.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Style check
2+
on: [push, pull_request]
3+
4+
jobs:
5+
header_check:
6+
runs-on: ubuntu-latest
7+
name: Check code style
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Rust lints using Clippy
11+
working-directory: gc/mmtk
12+
run: cargo clippy
13+
- name: Rust code format check
14+
working-directory: gc/mmtk
15+
run: cargo fmt --check

0 commit comments

Comments
 (0)