Skip to content

Commit 7b6b6a0

Browse files
committed
Run CI more selectively
Signed-off-by: Cristian Le <git@lecris.dev>
1 parent 23a60f5 commit 7b6b6a0

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

.github/workflows/cmake.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@ name: CMake CI
22

33
on:
44
push:
5-
paths-exclude:
6-
- '.github/workflows/make.yml'
7-
- '.gitignore'
8-
- 'README'
9-
- '**README'
10-
- 'LICENSE'
11-
- '**Makefile'
12-
- 'SLmake.inc.example'
5+
branches: [master]
136
pull_request:
14-
paths-exclude:
7+
paths-ignore:
158
- '.github/workflows/make.yml'
169
- '.gitignore'
1710
- 'README'
@@ -20,6 +13,10 @@ on:
2013
- '**Makefile'
2114
- 'SLmake.inc.example'
2215

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
2320
env:
2421
CFLAGS: "-Wall -pedantic"
2522
FFLAGS: "-fcheck=all,no-bounds"
@@ -77,7 +74,7 @@ jobs:
7774
-DBUILD_SHARED_LIBS=ON \
7875
-DSCALAPACK_BUILD_TESTS=ON \
7976
-DMPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}
80-
77+
8178
- name: Build
8279
run: >
8380
cmake --build build
@@ -87,7 +84,7 @@ jobs:
8784
working-directory: ${{github.workspace}}/build
8885
run: >
8986
ctest --output-on-failure
90-
87+
9188
- name: Install (CMake < 3.15)
9289
run: DESTDIR=scalapack_install cmake --build build --target install
9390
if: ${{ matrix.cmake == '3.9' }}

.github/workflows/make.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@ name: Makefile CI
22

33
on:
44
push:
5-
paths-exclude:
6-
- '.github/workflows/cmake.yml'
7-
- '.gitignore'
8-
- 'README'
9-
- '**README'
10-
- 'LICENSE'
11-
- 'CMAKE**'
12-
- '**CMakeLists.txt'
5+
branches: [master]
136
pull_request:
14-
paths-exclude:
7+
paths-ignore:
158
- '.github/workflows/cmake.yml'
169
- '.gitignore'
1710
- 'README'
@@ -20,6 +13,10 @@ on:
2013
- 'CMAKE**'
2114
- '**CMakeLists.txt'
2215

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
2320
defaults:
2421
run:
2522
shell: bash

0 commit comments

Comments
 (0)