Skip to content

Commit 87565fc

Browse files
committed
Run CI more selectively
Signed-off-by: Cristian Le <[email protected]>
1 parent 9bd790d commit 87565fc

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 11 deletions
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"
@@ -79,7 +76,7 @@ jobs:
7976
-DBUILD_SHARED_LIBS=ON \
8077
-DSCALAPACK_BUILD_TESTS=ON \
8178
-DMPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}
82-
79+
8380
- name: Build
8481
run: >
8582
cmake --build build
@@ -89,7 +86,7 @@ jobs:
8986
working-directory: ${{github.workspace}}/build
9087
run: >
9188
ctest --output-on-failure
92-
89+
9390
- name: Install (CMake < 3.15)
9491
run: DESTDIR=scalapack_install cmake --build build --target install
9592
if: ${{ matrix.cmake == '3.9' }}

.github/workflows/make.yml

Lines changed: 6 additions & 9 deletions
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)