forked from boostorg/ublas
-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (26 loc) · 845 Bytes
/
code_format.yml
File metadata and controls
31 lines (26 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2020 Mohammad Ashar Khan
# Distributed under Boost Software License, Version 1.0
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
name: "Clang Code Format"
on:
push:
paths-ignore:
- '**.md'
- 'doc/**'
pull_request:
paths-ignore:
- '**.md'
- 'doc/**'
jobs:
format:
name: "Clang Code Formatting Check"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Clang Format 10
run: |
sudo apt-get install -y clang-format-10
# - name: "Format Codes"
# run: clang-format-10 -i examples/tensor/*.cpp test/tensor/*.cpp include/boost/numeric/ublas/tensor/*.hpp include/boost/numeric/ublas/tensor/*/*.hpp
# - name: Check diff
# run: git diff --exit-code HEAD