build: improve hvisor-tool cross-build compatibility and ivc kernel A… #239
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: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| code-check: | |
| name: code style check | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Check code style | |
| shell: bash | |
| run: | | |
| set -e | |
| pip install clang-format==14.0.6 | |
| find ./tools/ ./include/ ./driver/ -name "*.c" ! -name "*.mod.c" -o -name "*.h" | xargs clang-format -n --Werror | |
| echo "Code style check passed" | |