-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathappveyor.yml
94 lines (55 loc) · 2.19 KB
/
appveyor.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
93
94
environment:
matrix:
- COMPILER: msys2
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 64
platform:
- x64 # 64-bit
branches:
only:
- master
- /release-.*/
artifacts:
- path: dineof.exe
name: dineof.exe
# new MSYS2
# https://www.msys2.org/news/#2020-06-29-new-packagers
install:
- cmd: >-
SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
REM pacman -Syu --noconfirm
REM pacman -Su --noconfirm
pacman -S --needed --noconfirm mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-make
pacman -S --needed --noconfirm mingw-w64-x86_64-openblas
pacman -S --needed --noconfirm mingw-w64-x86_64-arpack mingw-w64-x86_64-lapack mingw-w64-x86_64-szip
pacman -S --needed --noconfirm mingw-w64-x86_64-hdf5
gcc --version
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.4.tar.gz
tar -zxf netcdf-c-4.7.4.tar.gz
cd netcdf-c-4.7.4/
bash -c './configure --disable-shared --enable-static --disable-dap --disable-utilities --prefix=/mingw64/'
make
make install
cd ..
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.5.2.tar.gz
tar -zxf netcdf-fortran-4.5.2.tar.gz
cd netcdf-fortran-4.5.2
bash -c './configure --disable-shared --enable-static --disable-dependency-tracking LIBS="-lhdf5_hl -lhdf5 -lm -lz" --prefix=/mingw64/ FCFLAGS="-w -fallow-argument-mismatch -O2"'
make
make install
cd ..
build_script:
- cmd: >-
pwd
ls
bash -c 'nc-config --all'
bash -c 'nf-config --all'
cp config.mk.template config.mk
bash -c 'make OS=mingw LIBS="-L/usr/lib -llapack -larpack -lopenblas $(nf-config --flibs) -lszip"'
bash -c '(cd SmallExample/; ../dineof.exe dineof.init)'