Skip to content

Building PE-Fortran by han190 #43

Building PE-Fortran by han190

Building PE-Fortran by han190 #43

Workflow file for this run

name: PE-Fortran
run-name: Building PE-Fortran by ${{ github.actor }}
on: [push]
jobs:
Test-PE-Fortran:
runs-on : ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
gcc_version: [13]
env:
FC: gfortran-${{ matrix.gcc_version }}
steps:
- name: Use Checkout
uses: actions/checkout@v1
- name: Use Fortran Package Manager
uses: fortran-lang/setup-fpm@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install gfortran
if: contains( matrix.os, 'ubuntu' )
run: sudo apt install gfortran-${{ matrix.gcc_version }}
- name: Install CMake
if: contains( matrix.os, 'ubuntu' )
run: sudo apt install cmake
- name: Configure and test with CMake
if: contains( matrix.os, 'ubuntu' )
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make clean
make
make test
- name: Compile and test with fpm
if: contains( matrix.os, 'ubuntu' )
run: |
fpm build --compiler gfortran-${{ matrix.gcc_version }} --flag "-ffree-line-length-none" --profile release
fpm run --compiler gfortran-${{ matrix.gcc_version }} --flag "-ffree-line-length-none" --profile release PE-Fortran
rm answer.log