[#88885] .github: Add formatting CI #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Renode CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| formatting-check: | |
| name: Formatting Check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apt -qqy update &> /dev/null | |
| apt -qqy install clang-format-19 cmake build-essential &> /dev/null | |
| - name: Install Dotnet | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Build Renode | |
| run: ./build.sh | |
| - name: Run format check | |
| run: dotnet format ./Renode_NET.sln --exclude lib --verify-no-changes --severity warn |