Skip to content

Commit e4cf989

Browse files
committed
ci: increase timeout as job count increased
1 parent 23f86ab commit e4cf989

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/ci_cmake.yml renamed to .github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: ci_cmake
1+
name: ci
22

33
env:
4-
CMAKE_BUILD_PARALLEL_LEVEL: 2
54
CTEST_PARALLEL_LEVEL: 2
65
CMAKE_BUILD_TYPE: Release
6+
HOMEBREW_NO_INSTALL_CLEANUP: 1
77

88
on:
99
push:
@@ -12,18 +12,17 @@ on:
1212
- "**.F90"
1313
- "**.cmake"
1414
- "**/CMakeLists.txt"
15-
- ".github/workflows/ci_cmake.yml"
15+
- ".github/workflows/ci.yml"
1616

1717
jobs:
1818

1919
linux-gcc:
2020
runs-on: ubuntu-latest
21-
timeout-minutes: 5
21+
timeout-minutes: 10
2222

2323
strategy:
2424
matrix:
2525
gcc-version: [7, 8, 9, 10, 11]
26-
shared: [true, false]
2726

2827
env:
2928
CC: gcc-${{ matrix.gcc-version }}
@@ -33,13 +32,14 @@ jobs:
3332
steps:
3433

3534
- name: install ninja and compilers
35+
timeout-minutes: 5
3636
run: |
3737
sudo apt update
3838
sudo apt install ninja-build gcc-${{ matrix.gcc-version }} g++-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
3939
4040
- uses: actions/checkout@v2
4141

42-
- run: cmake --preset multi -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
42+
- run: cmake --preset multi
4343

4444
- run: cmake --build --preset debug
4545
- run: ctest --preset debug -V
@@ -50,7 +50,7 @@ jobs:
5050

5151
linux-clang:
5252
runs-on: ubuntu-latest
53-
timeout-minutes: 5
53+
timeout-minutes: 10
5454

5555
strategy:
5656
matrix:
@@ -65,11 +65,12 @@ jobs:
6565
- uses: actions/checkout@v2
6666

6767
- name: install ninja and compilers
68+
timeout-minutes: 5
6869
run: |
6970
sudo apt update
7071
sudo apt install ninja-build clang-${{ matrix.clang-version }}
7172
72-
- run: cmake --preset multi -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
73+
- run: cmake --preset multi
7374

7475
- run: cmake --build --preset debug
7576
- run: ctest --preset debug -V
@@ -86,7 +87,6 @@ jobs:
8687
strategy:
8788
matrix:
8889
compiler: [ {cpp: g++-11, c: gcc-11}, {cpp: clang++, c: clang} ]
89-
shared: [true,false]
9090

9191
env:
9292
FC: gfortran-11
@@ -96,10 +96,11 @@ jobs:
9696

9797
steps:
9898
- run: brew install ninja
99+
timeout-minutes: 5
99100

100101
- uses: actions/checkout@v2
101102

102-
- run: cmake --preset multi -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
103+
- run: cmake --preset multi
103104

104105
- run: cmake --build --preset debug
105106
- run: ctest --preset debug -V
@@ -116,7 +117,6 @@ jobs:
116117
strategy:
117118
matrix:
118119
compiler: [ {cpp: g++, c: gcc} ]
119-
shared: [true,false]
120120

121121
env:
122122
CMAKE_GENERATOR: MinGW Makefiles
@@ -127,6 +127,6 @@ jobs:
127127
steps:
128128
- uses: actions/checkout@v2
129129

130-
- run: cmake -Bbuild -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
130+
- run: cmake -Bbuild
131131
- run: cmake --build build
132132
- run: ctest --test-dir build --preset default

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Interoperability examples between C, C++ and Fortran
22

3-
![cmake](https://github.com/scivision/fortran-c-cpp-interface/workflows/ci_cmake/badge.svg)
3+
[![ci](https://github.com/scivision/fortran-c-cpp-interface/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/fortran-c-cpp-interface/actions/workflows/ci.yml)
44
[![intel-oneapi](https://github.com/scivision/fortran-c-cpp-interface/actions/workflows/intel-oneapi.yml/badge.svg)](https://github.com/scivision/fortran-c-cpp-interface/actions/workflows/intel-oneapi.yml)
55

66
Fortran subroutines and functions are easily called from C and C++.

0 commit comments

Comments
 (0)