🚧 drop I/O schedulers flag #20
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: Checks | |
on: | |
push: | |
paths-ignore: | |
- '.github/ISSUE_TEMPLATE/**' | |
- 'LICENSE' | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
concurrency: | |
group: checks-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
cpp-linter: | |
runs-on: ubuntu-latest | |
container: archlinux:base-devel | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install deps | |
run: | | |
pacman -Syu --noconfirm cmake pkg-config ninja clang mold llvm qt5-base qt5-tools polkit-qt5 python git | |
shell: bash | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug | |
- uses: cpp-linter/[email protected] | |
id: linter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
style: file | |
version: '14' | |
database: ${{github.workspace}}/build | |
- name: Fail fast?! | |
if: steps.linter.outputs.checks-failed > 0 | |
run: | | |
echo "Some files failed the linting checks!" | |
# for actual deployment | |
# run: exit 1 | |
check_clang_format: | |
name: "Check C++ style" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run clang-format style check for C/C++/Protobuf programs. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '15' | |
check-path: 'src' | |
exclude-regex: 'src/ini.hpp' | |