Skip to content

Commit

Permalink
CI: Check rustfmt before build
Browse files Browse the repository at this point in the history
Ensure the formatting is up to date before going through the rest of the
build.

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Jan 17, 2025
1 parent 9206f81 commit afc8bc1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ jobs:
rm renode_${RENODE_VERSION}_amd64.deb
pip3 install -r /opt/renode/tests/requirements.txt --no-cache-dir
- name: Check formatting
working-directory: apptest
shell: bash
run: |
for name in $(find . -name Cargo.toml); do
name=$(dirname $name)
echo "Checking formatting of $name"
cd $name
cargo fmt --check
cd - > /dev/null
done
- name: Build firmware
working-directory: apptest
shell: bash
Expand Down

0 comments on commit afc8bc1

Please sign in to comment.