dirty #67
This file contains 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: Check code quality | |
on: push | |
jobs: | |
check-lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{github.workspace}} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sudo apt install clang-format clang-tidy | |
- run: pip install cmakelang | |
- run: clang-format --dry-run $(git ls-files | grep -E "\.(hpp|cpp)$") | |
- run: cmake-format --check $(git ls-files | grep -E "(CMakeLists.txt|\.cmake)$") | |
- run: cmake -B ${{github.workspace}}/build | |
- run: cmake --build build -t iwyu | |
- run: git ls-files | grep -E "\.cpp$" | xargs clang-tidy -p ${{github.workspace}}/build --extra-arg="-std=c++17" --extra-arg="-I${{github.workspace}}/include" --use-color | |
check-gcc-11: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sudo apt install ccache gcc-11 | |
- run: pip install pytest pytest-asyncio cppimport | |
- run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 | |
- run: cmake --build ${{github.workspace}}/build -t check_revamp | |
- run: cmake -B ${{github.workspace}}/build -DUnpadded_PLATFORM_ENDIANESS=LITTLE -DUnpadded_PLATFORM_SIGNED_MODE=TWOS_COMPLEMENT | |
- run: cmake --build ${{github.workspace}}/build -t check_revamp | |
check-clang-11: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sudo apt install ccache clang-11 | |
- run: pip install pytest pytest-asyncio cppimport | |
- run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 | |
- run: cmake --build ${{github.workspace}}/build -t check_revamp | |
- run: cmake -B ${{github.workspace}}/build -DUnpadded_PLATFORM_ENDIANESS=LITTLE -DUnpadded_PLATFORM_SIGNED_MODE=TWOS_COMPLEMENT | |
- run: cmake --build ${{github.workspace}}/build -t check_revamp |