File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI 
2+ 
3+ on : push 
4+ 
5+ jobs :
6+   Build :
7+     runs-on : ubuntu-22.04 
8+     strategy :
9+       fail-fast : true 
10+       matrix :
11+         mpi : [ 'mpich', 'openmpi', 'impi' ] 
12+ 
13+     env :
14+       FC : gfortran 
15+       GCC_V : 11 
16+ 
17+     steps :
18+     - name : Checkout code 
19+       uses : actions/checkout@v3 
20+ 
21+     - name : Install Dependencies 
22+       run : | 
23+         sudo apt install -y gfortran-${GCC_V} cmake 
24+         sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100 
25+ 
26+      - name : Setup MPI ${{ matrix.mpi }} 
27+       uses : mpi4py/setup-mpi@v1 
28+       with :
29+         mpi : ${{ matrix.mpi }} 
30+ 
31+     - name : Build and Test 
32+       run : | 
33+         mpirun --version 
34+         mkdir build 
35+         cmake -S . -B build -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" .. 
36+         cmake --build build -j $(nproc) 
37+         cmake --build build -t install -j $(nproc) || echo "installation failed" 
38+         ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200 
39+         cd build 
40+         make uninstall 
41+         echo "Ran with mpi: ${{ matrix.mpi }}" 
Original file line number Diff line number Diff line change 99      fail-fast : true 
1010      matrix :
1111        mpi : [ 'impi' ] 
12- #         mpi: [ 'mpich', 'openmpi', 'impi' ]
1312#         mpich is borken on ubuntu-24.04LTS and 24.10 see https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338
1413#         openmpi is borken on ubuntu-24.04LTS and 24.10 see https://github.com/open-mpi/ompi/issues/10726
1514#         ubuntu 24.10 is not available as github runner, so we are left with Intel's mpi for now.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments