]> https://gitweb.dealii.org/ - candi.git/commitdiff
Reinstall gcc compilers in macos ci jobs 249/head
authorFabian Castelli <fabian.castelli@kit.edu>
Tue, 27 Jul 2021 16:59:58 +0000 (18:59 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Wed, 28 Jul 2021 16:14:35 +0000 (18:14 +0200)
.github/workflows/main.yml

index 8b673846a2b347c1409402bfff94185da6341cd8..a2806090642b3aa020a180f5be0b9227a7046d55 100644 (file)
@@ -52,9 +52,10 @@ jobs:
     - name: setup
       run: |
         # force cmake version:
-        pip install cmake==3.18.4
+        pip install cmake==3.20.5
         echo "/Library/Frameworks/Python.framework/Versions/2.7/bin" >> $GITHUB_PATH
         brew install openmpi
+        brew reinstall gcc@9
     - name: info
       run: |
         mpicxx -v
@@ -65,28 +66,47 @@ jobs:
         ./candi.sh -j 2 --packages="dealii"
         cd ~/dealii-candi/tmp/build/deal.II-* && cat detailed.log && make test
 
-  osx-gcc:
-    name: OSX gcc
+  macos-gcc:
+    name: macos-gcc
     runs-on: [macos-latest]
 
     steps:
     - uses: actions/checkout@v2
     - name: setup
       run: |
-        # force cmake version:
-        pip install cmake==3.18.4
+        # Force cmake version 3.20.5
+        pip install cmake==3.20.5
         echo "/Library/Frameworks/Python.framework/Versions/2.7/bin" >> $GITHUB_PATH
+
+        # Update packages
+        brew update
+        brew upgrade
+
+        # Install openmpi
         brew install openmpi
+
+        # Reinstall gcc
+        brew reinstall gcc@9
+
     - name: info
       run: |
-        export OMPI_CXX=g++-9
-        mpicxx -v
+        # Export the compilers
+        export OMPI_CXX=g++-9; export OMPI_CC=gcc-9; export OMPI_FC=gfortran-9
+
+        # Show compilers and cmake versions
+        mpicc --version
+        mpicxx --version
+        mpif90 --version
+        mpif77 --version
         cmake --version
+
     - name: build
       run: |
-        export OMPI_CXX=g++-9
-        export OMPI_CC=gcc-9
-        export OMPI_FC=gfortran-9
+        # Export the compilers
+        export OMPI_CXX=g++-9; export OMPI_CC=gcc-9; export OMPI_FC=gfortran-9
+
+        # Compile dealii in DEBUG mode only
         echo 'DEAL_II_CONFOPTS="-D CMAKE_BUILD_TYPE=Debug"' >> candi.cfg
+
         ./candi.sh -j 2 --packages="once:p4est once:petsc dealii"
         cd ~/dealii-candi/tmp/build/deal.II-* && cat detailed.log && make test

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.