-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
143 lines (115 loc) · 6.3 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
version: 1.0.{build}
build:
parallel: true # Enable parallel builds for the matrix
# Define build matrices for Windows and macos-ventura
environment:
matrix:
- job_name: macOS
APPVEYOR_BUILD_WORKER_IMAGE: macos-ventura
- job_name: windows
COMPILER: cl
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 64
PATH: 'C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%'
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 # Windows image
# Issue 529: Added install block
install:
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') {$env:PATH = "$HOME/Qt/5.15.2/clang_64/bin:$env:PATH"}
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') {$env:QTDIR="C:\Qt\5.15.2\mingw81_64" }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') {$env:PATH += ";C:\$env:MSYS2_DIR\$env:MSYSTEM\bin;C:\$env:MSYS2_DIR\usr\bin;$env:QTDIR\bin;C:\MinGW\bin;C:\Qt\Tools\mingw64\bin"}
build_script:
# Get submodules
- git submodule update --init --recursive
# Print workflow image (for verification)
- bash -lc "echo $APPVEYOR_BUILD_WORKER_IMAGE"
#### Mac OS X ####
# Specify xcode verison
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { ls /Applications/ }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { sudo xcode-select -s /Applications/Xcode-13.4.1.app/ }
# Verify qmake version
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { qmake --version }
# Build MAVEN
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { qmake CONFIG+=release -r build.pro; make -j16; make INSTALL_ROOT=appdir install }
# Print output
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { bash -lc "find . -name 'Maven.app'" }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { bash -lc "find . -name 'peakdetector.app'" }
#### Windows ####
# Create cache to avoid a warning, which powershell interprets as an error, and causes the build to fail
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "mkdir /var/cache/pacman/pkg/"}
# Install zlib (Windows only)
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "pacman -S --needed --noconfirm zlib-devel" }
# Install sqlite
# - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "pacman -S --needed --noconfirm mingw64/mingw-w64-x86_64-sqlite3 2>/dev/null" }
# MAVEN
# - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "APPVEYOR_BUILD_FOLDER='/c/projects/maven/' && export APPVEYOR_BUILD_FOLDER"}
# - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "echo APPVEYOR_BUILD_FOLDER=$APPVEYOR_BUILD_FOLDER" }
# - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "find $APPVEYOR_BUILD_FOLDER -name 'build.pro'" }
# Issue 742: builds all maven executables (including peakdetector)
# - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "cd /c/projects/maven/; qmake CONFIG+=release -r build.pro 2>/dev/null; make -j16 2>/dev/null; make INSTALL_ROOT=appdir install 2>/dev/null"}
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura'){ bash -lc "cd /c/projects/maven/src/maven_core; qmake CONFIG+=release -r build.pro 2>/dev/null; make -j16 2>/dev/null; cd /c/projects/maven/src/maven/; qmake CONFIG+=release maven.pro 2>/dev/null; make -j16 2>/dev/null; make INSTALL_ROOT=appdir install 2>/dev/null"}
# Print contents
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') { bash -lc "cd /c/projects/maven/; ls src/maven/appdir/bin/" }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') { bash -lc "cd /c/projects/maven/; find . -name 'Maven.exe'" }
# - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') { bash -lc "cd /c/projects/maven/; find . -name 'peakdetector.exe'" }
after_build:
# Mac OS prepare artifacts
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { bash -lc "find . -name 'make_dist_osx.sh'" }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { bash -lc "./make_dist_osx.sh src/maven/appdir/bin/Maven.app" }
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'macos-ventura') { bash -lc "./make_dist_osx.sh src/peakdetector/appdir/bin/peakdetector.app" }
# Windows prepare artifacts
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') { bash -lc "cd /c/projects/maven/; ./make_dist_win32.sh src/maven/appdir/bin/Maven.exe" }
# Issue 742: Deploy peakdetector
#- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -ne 'macos-ventura') { bash -lc "cd /c/projects/maven/; ./make_dist_win32.sh src/peakdetector/appdir/bin/peakdetector.exe" }
artifacts:
- path: dist/Maven*.dmg
name: Maven-macos
- path: dist/peakdetector*.dmg
name: peakdetector-macos
- path: dist/Maven*.zip
name: Maven-windows
# - path: dist/peakdetector*.zip
# name: peakdetector-windows
deploy:
- provider: GitHub
description: 'Maven Desktop Application - Mac OS'
auth_token:
secure: dUsKwa2HNyEycsQtwtVQ9g7tXTQNjXzpf7FEBMllM69nbd1FC0PwcsC4IMGqHdRn
artifact: Maven-macos
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true
APPVEYOR_BUILD_WORKER_IMAGE: macos-ventura
- provider: GitHub
description: 'Peakdetector Executable - Mac OS'
auth_token:
secure: dUsKwa2HNyEycsQtwtVQ9g7tXTQNjXzpf7FEBMllM69nbd1FC0PwcsC4IMGqHdRn
artifact: peakdetector-macos
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true
APPVEYOR_BUILD_WORKER_IMAGE: macos-ventura
- provider: GitHub
description: 'Maven Desktop Application - Windows'
auth_token:
secure: dUsKwa2HNyEycsQtwtVQ9g7tXTQNjXzpf7FEBMllM69nbd1FC0PwcsC4IMGqHdRn
artifact: Maven-windows
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
# - provider: GitHub
# description: 'Peakdetector Executable - Windows'
# auth_token:
# secure: dUsKwa2HNyEycsQtwtVQ9g7tXTQNjXzpf7FEBMllM69nbd1FC0PwcsC4IMGqHdRn
# artifact: peakdetector-windows
# draft: false
# prerelease: false
# on:
# APPVEYOR_REPO_TAG: true
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022