Skip to content

Commit ae08530

Browse files
committed
Add a rustfmt syntactic check for the Rust project
1 parent 9b681ad commit ae08530

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/syntax-checks.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,18 @@ jobs:
4747
BASE_BRANCH: ${{ github.base_ref }}
4848
MERGE_BRANCH: ${{ github.ref }}
4949
run: ./.github/workflows/pull-request-check-cpplint.sh
50+
51+
# This job should take about a minute (est)
52+
check-rustfmt:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout CBMC repository
56+
uses: actions/checkout@v3
57+
- name: Install latest stable Rust toolchain
58+
uses: actions-rs/toolchain@v1
59+
with:
60+
toolchain: stable
61+
override: true
62+
components: rustfmt, clippy
63+
- name: Run `cargo fmt` on top of Rust API project
64+
run: cd src/libcprover-rust; cargo fmt --all -- --check

0 commit comments

Comments
 (0)