forked from laurentnoe/iedera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
69 lines (60 loc) · 2.05 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
# FROM : https://github.com/tsoding/nothing/blob/master/appveyor.yml
image:
- Ubuntu2004
- MacOS
- Visual Studio 2015
environment: # enable mingw build on windows image
MSYSTEM: MINGW64
CHERE_INVOKING: 1
matrix:
- BUILD_TYPE: mingw
- BUILD_TYPE: other
matrix:
exclude: # no mingw build on unix
- image: Ubuntu2004
BUILD_TYPE: mingw
- image: MacOS
BUILD_TYPE: mingw
- image: Visual Studio 2015
BUILD_TYPE: other
build_script:
- ps: |
if ($isWindows) {
if ($env:BUILD_TYPE -eq 'mingw') {
C:\msys64\usr\bin\bash -lc "autoreconf"
C:\msys64\usr\bin\bash -lc "./configure LDFLAGS='-static'"
C:\msys64\usr\bin\bash -lc "automake"
C:\msys64\usr\bin\bash -lc "make"
C:\msys64\usr\bin\bash -lc "strip src/iedera.exe"
C:\msys64\usr\bin\bash -lc "mv -f src/iedera.exe src/iedera-Win64.exe"
}
} else {
if ($isLinux) {
bash -c "autoreconf && ./configure CXX=g++-9 && automake && make"
bash -c "make check"
# codecov .... pff ...
bash -c "cd src"
bash -c "gcov-9 iedera_gcov-main iedera_gcov-macro iedera_gcov-seed"
bash -c "cd .."
bash -c "curl -Os https://uploader.codecov.io/latest/linux/codecov"
bash -c "chmod +x codecov"
bash -c "./codecov -g -t b6cb7b5e-616c-4027-9ab5-58706b05cfd4"
bash -c "strip src/iedera && mv -f src/iedera src/iedera-Linux64.bin"
} else {
bash -c "autoreconf && ./configure && make"
bash -c "mv -f src/iedera src/iedera-MacOS64.bin"
}
}
artifacts:
- path: 'src\iedera-*64*'
name: Releases
deploy:
provider: GitHub
description: 'MacOSX x64, Windows x64 & Linux x64 binaries'
release: ${APPVEYOR_REPO_TAG_NAME}
auth_token:
secure: a+NmYFzXxPCFefjxKpbBxgRjCUJTVBpQkPOyWV3/qXgp5/CB533quFGZh3j+3XOT
draft: true
prerelease: true
on:
APPVEYOR_REPO_TAG: true