Skip to content

Commit

Permalink
Install and set Fortran compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jan 16, 2025
1 parent 281914c commit b915c2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-with-kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,18 @@ jobs:
apt update
if [ ${{ matrix.compiler }} != 'default' ];then
apt --yes --no-install-recommends install ${{ matrix.compiler.c }} ${{ matrix.compiler.cpp }}
apt --yes --no-install-recommends install ${{ matrix.compiler.c }} ${{ matrix.compiler.cpp }} gfortran
export CC=${{ matrix.compiler.c }}
export CXX=${{ matrix.compiler.cpp }}
else
apt --yes --no-install-recommends install gcc g++
apt --yes --no-install-recommends install gcc g++ gfortran
export CC=gcc
export CXX=g++
fi
echo "CC=$CC" >> $GITHUB_ENV
echo "CXX=$CXX" >> $GITHUB_ENV
echo "FC=gfortran" >> $GITHUB_ENV
case ${{ matrix.preset }} in
*OpenMP* )
Expand Down

0 comments on commit b915c2f

Please sign in to comment.