Skip to content

Commit 92177ce

Browse files
authored
Do not trigger Github Actions for doc or Readme changes (#102)
Ignore documentation and markdown changes for CI
1 parent a23a903 commit 92177ce

9 files changed

+85
-21
lines changed

.github/workflows/address_san.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
name: Address Sanitizer
66
# Trigger on Push to the repository, regardless of the branch.
77
# For fine tune, You can add specific branches or tags.
8-
on: [push, pull_request]
9-
8+
on:
9+
push:
10+
paths-ignore:
11+
- '**.md'
12+
- 'doc/**'
13+
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'doc/**'
1017
jobs:
1118
build:
1219
name: "${{matrix.config.cxx}} -std=c++${{matrix.config.cxxstd}}"

.github/workflows/apple_clang.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44

55
name: Apple Clang
66

7-
on: [push, pull_request]
8-
7+
on:
8+
push:
9+
paths-ignore:
10+
- '**.md'
11+
- 'doc/**'
12+
pull_request:
13+
paths-ignore:
14+
- '**.md'
15+
- 'doc/**'
916
jobs:
1017
build:
1118
name: "Darwin 11.0 -std=c++${{matrix.cxxstd}}"

.github/workflows/clangtidy_check.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44

55
name: Clang tidy checks
66

7-
on: [push]
8-
7+
on:
8+
push:
9+
paths-ignore:
10+
- '**.md'
11+
- 'doc/**'
12+
pull_request:
13+
paths-ignore:
14+
- '**.md'
15+
- 'doc/**'
916
jobs:
1017
check:
1118
name: Clang tidy Check

.github/workflows/code_format.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44

55
name: "Code Format"
66

7-
on: [push, pull_request]
8-
7+
on:
8+
push:
9+
paths-ignore:
10+
- '**.md'
11+
- 'doc/**'
12+
pull_request:
13+
paths-ignore:
14+
- '**.md'
15+
- 'doc/**'
916
jobs:
1017
format:
1118
name: "Code Formatting Check"
@@ -21,4 +28,4 @@ jobs:
2128
run: clang-format-10 -i examples/tensor/*.cpp test/tensor/*.cpp include/boost/numeric/ublas/tensor/*.hpp include/boost/numeric/ublas/tensor/*/*.hpp
2229

2330
- name: Check diff
24-
run: git diff --exit-code HEAD
31+
run: git diff --exit-code HEAD

.github/workflows/linux_clang.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@
55
name: Linux Clang Release
66
# Trigger on Push to the repository, regardless of the branch.
77
# For fine tune, You can add specific branches or tags.
8-
on: [push, pull_request]
9-
8+
on:
9+
push:
10+
paths-ignore:
11+
- '**.md'
12+
- 'doc/**'
13+
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'doc/**'
17+
1018
jobs:
1119
build:
1220
name: "${{matrix.config.cxx}} -std=c++${{matrix.config.cxxstd}}"
@@ -79,4 +87,4 @@ jobs:
7987
run: |
8088
cd $BOOST_ROOT
8189
cd libs/numeric/ublas
82-
$BOOST_ROOT/b2 -j 4 test/tensor toolset=clang cxxstd=${{matrix.config.cxxstd}} cxxflags="-O3"
90+
$BOOST_ROOT/b2 -j 4 test/tensor toolset=clang cxxstd=${{matrix.config.cxxstd}} cxxflags="-O3"

.github/workflows/linux_gcc.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
name: Linux GCC Debug
66
# Trigger on Push to the repository, regardless of the branch.
77
# For fine tune, You can add specific branches or tags.
8-
on: [push, pull_request]
9-
8+
on:
9+
push:
10+
paths-ignore:
11+
- '**.md'
12+
- 'doc/**'
13+
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'doc/**'
1017
jobs:
1118
build:
1219
name: "${{matrix.config.cxx}} -std=c++${{matrix.config.cxxstd}}"

.github/workflows/thread_san.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
name: Thread Sanitizer
66
# Trigger on Push to the repository, regardless of the branch.
77
# For fine tune, You can add specific branches or tags.
8-
on: [push, pull_request]
9-
8+
on:
9+
push:
10+
paths-ignore:
11+
- '**.md'
12+
- 'doc/**'
13+
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'doc/**'
1017
jobs:
1118
build:
1219
name: "${{matrix.config.cxx}} -std=c++${{matrix.config.cxxstd}}"

.github/workflows/ub_san.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
name: Undefined Behaviour Sanitizer
66
# Trigger on Push to the repository, regardless of the branch.
77
# For fine tune, You can add specific branches or tags.
8-
on: [push, pull_request]
9-
8+
on:
9+
push:
10+
paths-ignore:
11+
- '**.md'
12+
- 'doc/**'
13+
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'doc/**'
1017
jobs:
1118
build:
1219
name: "${{matrix.config.cxx}} -std=c++${{matrix.config.cxxstd}}"

.github/workflows/windows_msvc.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
44

55
name: "Windows MSVC"
6-
on: [push, pull_request]
7-
6+
on:
7+
push:
8+
paths-ignore:
9+
- '**.md'
10+
- 'doc/**'
11+
pull_request:
12+
paths-ignore:
13+
- '**.md'
14+
- 'doc/**'
815
jobs:
916
build:
1017
name: "${{matrix.config.version}} -std=c++${{matrix.config.cxxstd}}"
@@ -82,4 +89,4 @@ jobs:
8289
cd %BOOST_ROOT%
8390
cd libs\numeric\ublas
8491
%BOOST_ROOT%\b2 -j 4 test/tensor toolset=%TOOLSET% cxxstd=${{matrix.config.cxxstd}} address-model=64
85-
92+

0 commit comments

Comments
 (0)