-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (69 loc) · 2.33 KB
/
fpm.yml
File metadata and controls
82 lines (69 loc) · 2.33 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: fpm
on: [push, pull_request]
jobs:
test_fpm:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
name: ${{ matrix.os }}_${{ matrix.compiler }}_fpm
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {os: ubuntu-latest, compiler: gfortran }
- {os: ubuntu-latest, compiler: ifx }
- {os: windows-latest, compiler: gfortran }
- {os: windows-latest, compiler: ifx, fpm-version: "0.12.0"}
- {os: macos-latest, compiler: gfortran }
steps:
- name: Setup Fortran
uses: gha3mi/setup-fortran-conda@latest
with:
compiler: ${{ matrix.compiler }}
fpm-version: ${{ matrix.fpm-version }}
- name: fpm test (debug)
if: always()
run: fpm test --profile debug --compiler ${{ matrix.compiler }} --verbose
- name: fpm test (release)
if: always()
run: fpm test --profile release --compiler ${{ matrix.compiler }} --verbose
- name: fpm example (debug)
if: always()
run: fpm run --example --all --profile debug --compiler ${{ matrix.compiler }} --verbose
- name: fpm example (release)
if: always()
run: fpm run --example --all --profile release --compiler ${{ matrix.compiler }} --verbose
# jobs:
# gcc-build:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest]
# gcc_v: [15] # Version of GFortran we want to use.
# include:
# - os: ubuntu-latest
# os-arch: linux-x86_64
# env:
# FC: gfortran
# GCC_V: ${{ matrix.gcc_v }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v1
# - name: Install GFortran Linux
# if: contains(matrix.os, 'ubuntu')
# run: |
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
# --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
# --slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
# - name: Install fpm
# uses: fortran-lang/setup-fpm@v5
# with:
# fpm-version: 'v0.10.1'
# - name: Build FPLOT
# run: |
# gfortran --version
# fpm build
# - name: Run tests
# run: |
# gfortran --version
# fpm test