-
Notifications
You must be signed in to change notification settings - Fork 2
92 lines (80 loc) · 2.28 KB
/
build_test.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
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
83
84
85
86
87
88
89
90
91
92
name: Build and Test
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
buildfpm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
set -ex
echo "Update information of package list.."
sudo apt-get update
echo "Install Fortran compiler .."
sudo apt-get install -y gfortran
echo "Install OpenMP headers .."
sudo apt-get install -y libomp-dev
echo "Install lapack .."
sudo apt-get install -y libopenblas-dev liblapack-dev
echo "install meson"
sudo apt-get install -y meson
- name: Install fpm
uses: fortran-lang/setup-fpm@v5
with:
fpm-version: 'v0.9.0'
- name: Build featom
run: |
set -ex
fpm build
- name: Test featom
run: |
set -ex
fpm test
- name: Test convergence
run: |
set -ex
fpm run gpd_coulomb_schroed_nelements
- name: Test Release Mode
run: |
set -ex
fpm test --profile=release
fpm run --profile=release gpd_coulomb_schroed_nelements
buildmeson:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
set -ex
echo "Update information of package list.."
sudo apt-get update
echo "Install Fortran compiler .."
sudo apt-get install -y gfortran
echo "Install OpenMP headers .."
sudo apt-get install -y libomp-dev
echo "Install lapack .."
sudo apt-get install -y libopenblas-dev liblapack-dev
echo "install meson"
sudo apt-get install -y meson
- name: Build featom
run: |
set -ex
meson setup bbdir -Dwith_tests=True -Dwith_app=True
- name: Test featom
run: |
set -ex
meson test -C bbdir
- name: Test convergence [release]
run: |
set -ex
meson compile -C bbdir
./bbdir/app/gpd_coulomb_schroed_nelements