File: style-check.yml

package info (click to toggle)
xsimd 14.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,144 kB
  • sloc: cpp: 41,628; sh: 541; makefile: 184; python: 117
file content (24 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: style check
on: [push, pull_request]
concurrency:
  group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
  cancel-in-progress: true
jobs:
  formatting-check:
    name: Format check
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Run clang-format style check for C/C++ programs.
      uses: jidicula/clang-format-action@v4.11.0
      with:
        clang-format-version: '17'
        exclude-regex: 'doctest.h'
  inlining-check:
    runs-on: ubuntu-latest
    name: Check inline keyword usage
    steps:
    - uses: actions/checkout@v2
    - run: sudo apt install clang-tools
    - run: sh ./test/check_inline_specifier.sh .