-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.28 KB
/
PE-Fortran.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }} --profile release
fpm run --compiler gfortran-${{ matrix.gcc_version }} --profile release PE-Fortran
rm answer.log