-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·54 lines (46 loc) · 1.21 KB
/
test_gfortran_msys_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
name: msys windows gfortran
on: [push, pull_request]
env:
CTEST_TIME_TIMEOUT: "5" # some failures hang forever
FC: gfortran
TZ: UTC+04:00
jobs:
gfortran-windows-msys2-mingw64:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup MinGW (MSYS2)
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: false
install: >-
git
wget
mingw-w64-x86_64-gcc-fortran
- name: Install fpm
shell: msys2 {0}
run: |
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90
mkdir tmp
gfortran fpm.F90 -Jtmp -Itmp -static -o fpm
rm -f tmp/*.mod
- name: Run tests and demo programs (debug)
shell: msys2 {0}
run: |
gfortran --version
./fpm test --profile release -flag "-D _WIN32"
env:
FC: gfortran
TZ: UTC+04:00
- name: Run tests and demo programs (release)
shell: msys2 {0}
run: |
gfortran --version
./fpm test --profile release -flag "-D _WIN32"
env:
FC: gfortran
TZ: UTC+04:00
- name: cleanup
run: dir