11name : CI
22
3- on : push
3+ on : [ push, pull_request]
44
55env :
66 CMAKE_BUILD_PARALLEL_LEVEL : " 2" # 2 cores on each GHA VM, enable parallel builds
77 CTEST_OUTPUT_ON_FAILURE : " ON" # This way we don't need a flag to ctest
88 CTEST_PARALLEL_LEVEL : " 2"
9- CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
9+ CTEST_TIME_TIMEOUT : " 5" # some failures hang forever
1010 HOMEBREW_NO_ANALYTICS : " ON" # Make Homebrew installation a little quicker
1111 HOMEBREW_NO_AUTO_UPDATE : " ON"
1212 HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK : " ON"
@@ -21,71 +21,71 @@ jobs:
2121 matrix :
2222 os : [ubuntu-latest, macos-12]
2323 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' }
3030 build : [cmake]
3131 include :
3232 - os : ubuntu-latest
3333 build : cmake-inline
3434 toolchain :
35- - { compiler: gcc, version: 10 }
35+ - {compiler: gcc, version: 10}
3636 exclude :
3737 - os : macos-12
38- toolchain : { compiler: intel, version: " 2024.1" }
38+ toolchain : {compiler: intel, version: ' 2024.1' }
3939 - os : macos-12
40- toolchain : { compiler: gcc, version: 13 }
40+ toolchain : {compiler: gcc, version: 13}
4141 env :
4242 BUILD_DIR : ${{ matrix.build == 'cmake' && 'build' || '.' }}
4343
4444 steps :
45- - name : Checkout code
46- uses : actions/checkout@v4
45+ - name : Checkout code
46+ uses : actions/checkout@v4
4747
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
5252
53- - name : Install fypp
54- run : pip install --upgrade fypp ninja
53+ - name : Install fypp
54+ run : pip install --upgrade fypp ninja
5555
56- - name : Setup Fortran compiler
57- uses : fortran-lang/setup-fortran@v1.6.1
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/setup-fortran@v1.6.1
58+ id : setup-fortran
59+ with :
60+ compiler : ${{ matrix.toolchain.compiler }}
61+ version : ${{ matrix.toolchain.version }}
6262
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 }}
7171
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
7575
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') }}
7979
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
8888
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