-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·66 lines (55 loc) · 1.49 KB
/
test_gfortran_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
name: windows with gfortran
on: [push, pull_request]
jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
gcc_v: [10] # Version of GFortran we want to use.
include:
- os: windows-latest
os-arch: windows-x86_64
release-flags: --flag '--static -g -fbacktrace -O3'
exe: .exe
env:
FC: gfortran
GCC_V: ${{ matrix.gcc_v }}
TZ: UTC+04:00
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install fpm
run: |
echo PATH %PATH%
pwd
curl https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90 --output fpm.F90
mkdir tmp
gfortran -static fpm.F90 -Itmp -Jtmp -o fpm -D_WIN32 2>&1
dir
shell: cmd
- name: Display environment
run: |
echo PATH %PATH%
pwd
uname -a
echo "end" > foo.f90
gfortran -cpp -E -dM foo.f90
fpm --version
fpm build --verbose
gfortran --version
shell: cmd
- name: tests MSWindows (debug)
run: |
fpm test --profile debug -flag "-static -D _WIN32" --verbose 2>&1
shell: cmd
- name: tests MSWindows (release)
run: |
fpm test --profile release -flag "-static -D _WIN32" --verbose 2>&1
shell: cmd
- name: cleanup MSWindows
run: dir
shell: cmd
#set PATH=%PATH%;%CD%
#make -k -p -fNOTTHERE