-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·66 lines (55 loc) · 1.97 KB
/
test_gfortran_ubuntu.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
name: ubuntu with gfortran
on: [push, pull_request]
jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest ]
include:
- os: ubuntu-latest
gcc_v: 12
env:
FC: gfortran
GCC_V: ${{ matrix.gcc_v }}
TZ: UTC+04:00
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install GFortran Linux
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/bingcov gcov /usr/bin/gcov-${GCC_V}
- name: Install fpm
run: |
echo $PATH
pwd
uname -a
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90
mkdir -p /home/runner/.local/bin tmp
ulimit -c unlimited -d unlimited -f unlimited -m unlimited -s unlimited -t unlimited -v unlimited -x unlimited
gfortran fpm.F90 -Itmp -Jtmp -static -o /home/runner/.local/bin/fpm
rm -f tmp/*.mod
ls -l
- name: Display environment
run: |
#make -k -p -fNOTTHERE
echo "end" > foo.f90
ulimit -c unlimited -d unlimited -f unlimited -m unlimited -s unlimited -t unlimited -v unlimited -x unlimited
gfortran -cpp -E -dM foo.f90
gfortran --version
fpm --version
- name: ubuntu with gfortran (debug)
run: |
ulimit -c unlimited -d unlimited -f unlimited -m unlimited -s unlimited -t unlimited -v unlimited -x unlimited
fpm test --profile debug --verbose
- name: ubuntu with gfortran (release)
run: |
ulimit -c unlimited -d unlimited -f unlimited -m unlimited -s unlimited -t unlimited -v unlimited -x unlimited
fpm test --profile release
# - name: Run demo programs (fpm run)
# run: fpm run --profile release
- name: cleanup Linux
run: ls -ltras