-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
167 lines (154 loc) · 6.44 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
environment:
matrix:
###
- NAME: x86_64 check
TOOLCHAIN: "default"
MINGW_ARCH: x86_64
MINGW_ROOT: c:\msys64\mingw64
CONFIGURE_OPTIONS: --disable-debug --disable-silent-rules --disable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw64/lib
BOOST_INCLUDES: /c/msys64/mingw64/includes/boost
TEST_COMMAND: make check
- NAME: x86_64 nsis
TOOLCHAIN: "default"
MINGW_ARCH: x86_64
MINGW_ROOT: c:\msys64\mingw64
CONFIGURE_OPTIONS: --disable-debug --disable-silent-rules --disable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw64/lib
BOOST_INCLUDES: /c/msys64/mingw64/includes/boost
TEST_COMMAND: make nsis
MUTABOR_DEPLOY: true
GITHUB_TOKEN:
secure: CBpAyIWs05AwGPigYDbYgEzBNV3jhXm6rvoBA+GoFXB5CocdOAzen2ceL906o0EM
- NAME: x86_64 static distcheck
TOOLCHAIN: "default"
MINGW_ARCH: x86_64
MINGW_ROOT: c:\msys64\mingw64
CONFIGURE_OPTIONS: --enable-debug --disable-silent-rules --disable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw64/lib
BOOST_INCLUDES: /c/msys64/mingw64/includes/boost
TEST_COMMAND: make distcheck
- NAME: x86_64 shared distcheck
TOOLCHAIN: "default"
MINGW_ARCH: x86_64
MINGW_ROOT: c:\msys64\mingw64
CONFIGURE_OPTIONS: --enable-debug --disable-silent-rules --disable-static --enable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw64/lib
BOOST_INCLUDES: /c/msys64/mingw64/includes/boost
TEST_COMMAND: make distcheck
- NAME: i686 check
TOOLCHAIN: "default"
MINGW_ARCH: i686
MINGW_ROOT: c:\msys64\mingw32
CONFIGURE_OPTIONS: --disable-debug --disable-silent-rules --disable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw32/lib
BOOST_INCLUDES: /c/msys64/mingw32/includes/boost
TEST_COMMAND: make check
- NAME: i686 nsis
TOOLCHAIN: "default"
MINGW_ARCH: i686
MINGW_ROOT: c:\msys64\mingw32
CONFIGURE_OPTIONS: --disable-debug --disable-silent-rules --disable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw32/lib
BOOST_INCLUDES: /c/msys64/mingw32/includes/boost
TEST_COMMAND: make nsis
MUTABOR_DEPLOY: true
GITHUB_TOKEN:
secure: CBpAyIWs05AwGPigYDbYgEzBNV3jhXm6rvoBA+GoFXB5CocdOAzen2ceL906o0EM
- NAME: i686 static distcheck
TOOLCHAIN: "default"
MINGW_ARCH: i686
MINGW_ROOT: c:\msys64\mingw32
CONFIGURE_OPTIONS: --enable-debug --disable-silent-rules --disable-shared
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw32/lib
BOOST_INCLUDES: /c/msys64/mingw32/includes/boost
TEST_COMMAND: make distcheck
- NAME: i686 shared distcheck
TOOLCHAIN: "default"
MINGW_ARCH: i686
MINGW_ROOT: c:\msys64\mingw32
CONFIGURE_OPTIONS: --enable-debug --disable-silent-rules --disable-static
_CC: MINGW
BOOST_LIBS: /c/msys64/mingw32/lib
BOOST_INCLUDES: /c/msys64/mingw32/includes/boost
TEST_COMMAND: make distcheck
# example see: https://github.com/wang-bin/avbuild/blob/master/appveyor.yml
init:
- echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%
- echo PROCESSOR_IDENTIFIER=%PROCESSOR_IDENTIFIER%
- set MSYS2_PATH_TYPE=inherit
- set MSYS2_DIR=C:\msys64
install:
# can not starts with %
# - git submodule update --init
- if /i %_CC%==MinGW (
C:\msys64\usr\bin\pacman -Rc --noconfirm mingw-w64-i686-gcc-ada mingw-w64-i686-gcc-objc mingw-w64-x86_64-gcc-ada mingw-w64-x86_64-gcc-objc &&
C:\msys64\usr\bin\pacman -Syyuu --noconfirm &&
C:\msys64\usr\bin\pacman -Suu --noconfirm &&
C:\msys64\usr\bin\pacman -S --noconfirm --needed mingw-w64-%MINGW_ARCH%-gcc &&
C:\msys64\usr\bin\pacman -Sc --noconfirm
)
- C:\msys64\usr\bin\pacman -Ss --noconfirm boost
- C:\msys64\usr\bin\pacman -Ss --noconfirm nsis
- C:\msys64\usr\bin\pacman -Ss --noconfirm zip
- C:\msys64\usr\bin\pacman -Ss --noconfirm autoconf
- C:\msys64\usr\bin\pacman -Ss --noconfirm automake
- C:\msys64\usr\bin\pacman -Ss --noconfirm libtool
# C:\msys64\usr\bin\pacman -Ss --noconfirm gettext
#- C:\msys64\usr\bin\pacman -Ss --noconfirm jack
- C:\msys64\usr\bin\pacman -Ss --noconfirm wxWidgets
- C:\msys64\usr\bin\pacman -S --noconfirm --needed
mingw-w64-%MINGW_ARCH%-boost autoconf mingw-w64-%MINGW_ARCH%-libtool automake1.15 mingw-w64-%MINGW_ARCH%-gettext mingw-w64-%MINGW_ARCH%-wxWidgets mingw-w64-%MINGW_ARCH%-nsis zip
build_script:
- dir C:\
- dir C:\msys64
- dir C:\msys64\usr\bin
- dir C:\msys64\opt
- dir C:\msys64\mingw32
- dir c:\msys64\mingw32\bin
- dir C:\msys64\mingw32\i686-w64-mingw32
- dir C:\msys64\mingw32\i686-w64-mingw32\bin
- dir C:\mingw-w64
- dir C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
- dir C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\opt\bin
- SET PATH=%MINGW_ROOT%\bin;C:\mingw-w64\bin;C:\msys64\usr\bin;%PATH%
- echo "%PATH%"
- bash -c "env"
- bash -c pwd
- bash -c "git submodule update --init --recursive"
- bash -c "mkdir -p config"
- bash -c "touch config/config.rpath"
- bash -c "autoreconf -i -f"
- bash -c "./configure %CONFIGURE_OPTIONS% --host=%MINGW_ARCH%-w64-mingw32 --build=%MINGW_ARCH%-w64-mingw32 --with-boost-libdir=$BOOST_LIBS || cat config.log"
- bash -c "(%TEST_COMMAND%) || (cat test-suite.log ; false)"
- bash -c "git config --global user.email "[email protected]"
- bash -c "git config --global user.name "Appveyor automatic deployment"
- bash -c "if [[ $MUTABOR_DEPLOY = true ]] && false ; then git clone --depth=1 --branch=master https://${GITHUB_TOKEN}@github.com/keinstein/mutabor-nightlies public && mkdir -p public/docs/download/${_CC}_WIN_${MINGW_ARCH}_${APPVEYOR_REPO_TAG_NAME} && cp Mutabor*.exe *.zip public/docs/download/${_CC}_WIN_${MINGW_ARCH}_${APPVEYOR_REPO_TAG_NAME} && cd public && git add docs/download/${_CC}_WIN_${MINGW_ARCH}_${APPVEYOR_REPO_TAG_NAME} && git commit -m 'Automatic publishing from Appveyor' && until git push origin master ; do sleep 60 ; git pull origin ; done; fi"
artifacts:
- path: 'Mutabor*.exe'
name: Releases
- path: '*.zip'
name: ZIPs
- path: '*.log'
name: logs
deploy:
- provider: GitHub
name: Releases
description: Nightly build
auth_token:
secure: CBpAyIWs05AwGPigYDbYgEzBNV3jhXm6rvoBA+GoFXB5CocdOAzen2ceL906o0EM
artifact: Releases,ZIPs
force_update: true
draft: false
prerelease: false
on:
branch: master
APPVEYOR_REPO_TAG: true
MUTABOR_DEPLOY: true