From 02b5d126833e7c5d7ff50437eac83472babf3d0a Mon Sep 17 00:00:00 2001 From: Fabian Castelli Date: Tue, 27 Jul 2021 18:59:58 +0200 Subject: [PATCH] Reinstall gcc compilers in macos ci jobs --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b67384..a280609 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 -- 2.39.5