Skip to content

Commit a5e1477

Browse files
committed
CI: Check rustfmt before build
Ensure the formatting is up to date before going through the rest of the build. Signed-off-by: David Brown <[email protected]>
1 parent 13818ad commit a5e1477

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ jobs:
6868
rm renode_${RENODE_VERSION}_amd64.deb
6969
pip3 install -r /opt/renode/tests/requirements.txt --no-cache-dir
7070
71+
- name: Check formatting
72+
working-directory: apptest
73+
shell: bash
74+
run: |
75+
for name in $(find . -name Cargo.toml); do
76+
name=$(dirname $name)
77+
echo "Checking formatting of $name"
78+
cd $name
79+
cargo --check
80+
cd -
81+
done
82+
7183
- name: Build firmware
7284
working-directory: apptest
7385
shell: bash

0 commit comments

Comments
 (0)