-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·74 lines (66 loc) · 1.65 KB
/
test_gfortran_mingw64_windows.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
name: windows mingw64 with gfortran
on: [push, pull_request]
env:
CTEST_TIME_TIMEOUT: "50" # some failures hang forever
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
]
env:
FC: gfortran
TZ: UTC+04:00
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- name: Setup MinGW native environment
uses: msys2/setup-msys2@v2
if: contains(matrix.msystem, 'MINGW')
with:
msystem: ${{ matrix.msystem }}
update: false
install: >-
git
wget
mingw-w64-${{ matrix.arch }}-gcc
mingw-w64-${{ matrix.arch }}-gcc-fortran
- name: Install fpm
run: |
echo $PATH
pwd
uname -a
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90
mkdir -p tmp
gfortran fpm.F90 -Jtmp -Itmp -static -o fpm
rm -f tmp/*.mod
ls -l
- name: tests (release)
run: |
gfortran --version
PATH=$PATH:.
./fpm test --compiler gfortran --profile release -flag "-D _WIN32"
env:
FPM_COMPILER: gfortran
CC: gcc
CXX: g++
FC: gfortran
TZ: UTC+04:00
- name: tests (debug)
run: |
PATH=$PATH:.
gfortran --version
./fpm test --compiler gfortran --profile debug -flag "-D _WIN32"
env:
FPM_COMPILER: gfortran
CC: gcc
CXX: g++
FC: gfortran
TZ: UTC+04:00
- name: cleanup
run: ls -ltras