1
1
name : CI
2
2
3
- on : [ push, pull_request]
3
+ on : push
4
4
5
5
env :
6
6
CMAKE_BUILD_PARALLEL_LEVEL : " 2" # 2 cores on each GHA VM, enable parallel builds
7
7
CTEST_OUTPUT_ON_FAILURE : " ON" # This way we don't need a flag to ctest
8
8
CTEST_PARALLEL_LEVEL : " 2"
9
- CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
9
+ CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
10
10
HOMEBREW_NO_ANALYTICS : " ON" # Make Homebrew installation a little quicker
11
11
HOMEBREW_NO_AUTO_UPDATE : " ON"
12
12
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK : " ON"
@@ -21,71 +21,71 @@ jobs:
21
21
matrix :
22
22
os : [ubuntu-latest, macos-12]
23
23
toolchain :
24
- - {compiler: gcc, version: 10}
25
- - {compiler: gcc, version: 11}
26
- - {compiler: gcc, version: 12}
27
- - {compiler: gcc, version: 13}
28
- - {compiler: intel, version: ' 2024.1' }
29
- - {compiler: intel-classic, version: ' 2021.9' }
24
+ - { compiler: gcc, version: 10 }
25
+ - { compiler: gcc, version: 11 }
26
+ - { compiler: gcc, version: 12 }
27
+ - { compiler: gcc, version: 13 }
28
+ - { compiler: intel, version: " 2024.1" }
29
+ - { compiler: intel-classic, version: " 2021.9" }
30
30
build : [cmake]
31
31
include :
32
32
- os : ubuntu-latest
33
33
build : cmake-inline
34
34
toolchain :
35
- - {compiler: gcc, version: 10}
35
+ - { compiler: gcc, version: 10 }
36
36
exclude :
37
37
- os : macos-12
38
- toolchain : {compiler: intel, version: ' 2024.1' }
38
+ toolchain : { compiler: intel, version: " 2024.1" }
39
39
- os : macos-12
40
- toolchain : {compiler: gcc, version: 13}
40
+ toolchain : { compiler: gcc, version: 13 }
41
41
env :
42
42
BUILD_DIR : ${{ matrix.build == 'cmake' && 'build' || '.' }}
43
43
44
44
steps :
45
- - name : Checkout code
46
- uses : actions/checkout@v4
45
+ - name : Checkout code
46
+ uses : actions/checkout@v4
47
47
48
- - name : Set up Python 3.x
49
- uses : actions/setup-python@v5 # Use pip to install latest CMake, & FORD/Jin2For, etc.
50
- with :
51
- python-version : 3.x
48
+ - name : Set up Python 3.x
49
+ uses : actions/setup-python@v5 # Use pip to install latest CMake, & FORD/Jin2For, etc.
50
+ with :
51
+ python-version : 3.x
52
52
53
- - name : Install fypp
54
- run : pip install --upgrade fypp ninja
53
+ - name : Install fypp
54
+ run : pip install --upgrade fypp ninja
55
55
56
- - name : Setup Fortran compiler
57
- uses :
fortran-lang/[email protected]
58
- id : setup-fortran
59
- with :
60
- compiler : ${{ matrix.toolchain.compiler }}
61
- version : ${{ matrix.toolchain.version }}
56
+ - name : Setup Fortran compiler
57
+ uses :
fortran-lang/[email protected]
58
+ id : setup-fortran
59
+ with :
60
+ compiler : ${{ matrix.toolchain.compiler }}
61
+ version : ${{ matrix.toolchain.version }}
62
62
63
- - name : Configure with CMake
64
- if : ${{ contains(matrix.build, 'cmake') }}
65
- run : >-
66
- cmake -Wdev -G Ninja
67
- -DCMAKE_BUILD_TYPE=Release
68
- -DCMAKE_MAXIMUM_RANK:String=4
69
- -DCMAKE_INSTALL_PREFIX=$PWD/_dist
70
- -S . -B ${{ env.BUILD_DIR }}
63
+ - name : Configure with CMake
64
+ if : ${{ contains(matrix.build, 'cmake') }}
65
+ run : >-
66
+ cmake -Wdev -G Ninja
67
+ -DCMAKE_BUILD_TYPE=Release
68
+ -DCMAKE_MAXIMUM_RANK:String=4
69
+ -DCMAKE_INSTALL_PREFIX=$PWD/_dist
70
+ -S . -B ${{ env.BUILD_DIR }}
71
71
72
- - name : Build and compile
73
- if : ${{ contains(matrix.build, 'cmake') }}
74
- run : cmake --build ${{ env.BUILD_DIR }} --parallel
72
+ - name : Build and compile
73
+ if : ${{ contains(matrix.build, 'cmake') }}
74
+ run : cmake --build ${{ env.BUILD_DIR }} --parallel
75
75
76
- - name : catch build fail
77
- run : cmake --build ${{ env.BUILD_DIR }} --verbose --parallel 1
78
- if : ${{ failure() && contains(matrix.build, 'cmake') }}
76
+ - name : catch build fail
77
+ run : cmake --build ${{ env.BUILD_DIR }} --verbose --parallel 1
78
+ if : ${{ failure() && contains(matrix.build, 'cmake') }}
79
79
80
- - name : test
81
- if : ${{ contains(matrix.build, 'cmake') }}
82
- run : >-
83
- ctest
84
- --test-dir ${{ env.BUILD_DIR }}
85
- --parallel
86
- --output-on-failure
87
- --no-tests=error
80
+ - name : test
81
+ if : ${{ contains(matrix.build, 'cmake') }}
82
+ run : >-
83
+ ctest
84
+ --test-dir ${{ env.BUILD_DIR }}
85
+ --parallel
86
+ --output-on-failure
87
+ --no-tests=error
88
88
89
- - name : Install project
90
- if : ${{ contains(matrix.build, 'cmake') }}
91
- run : cmake --install ${{ env.BUILD_DIR }}
89
+ - name : Install project
90
+ if : ${{ contains(matrix.build, 'cmake') }}
91
+ run : cmake --install ${{ env.BUILD_DIR }}
0 commit comments