forked from tom-23/TasmoManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
93 lines (87 loc) · 2.53 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
version: 1.0.{build}
# This file defines all the magic to test the build on every push to GitHub with the help of appveyor.com
# We use different (virtual) build environments that work sequentially and provide their artifacts.
# The artifacts of every push/build are available in appveyor for 6 months from build.
# Artifacts of tagged pushes ("unstable" or release number) are deployed into the GitHub release.
#define the build environments
image:
- Visual Studio 2019
- macOS
- Ubuntu
# Process the build for each build environment
for:
# Build Windows packages
- matrix:
only:
- image: Visual Studio 2019
environment:
QTDIR: /c/Qt/5.15/msvc2019_64
BUILD_SUB_DIR: Release
install:
- ps: $env:Path = "C:\Program Files\Git\bin;$env:Path"
- set QTDIR=C:\Qt\5.15\msvc2019_64
- set PATH=%PATH%;%QTDIR%\bin
- git submodule update --init --recursive
- cd lib/qmqtt
- md build
- cd build
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- qmake ..
- nmake
- nmake install
- cd ..\..\..
- bash scripts/win/install.sh
before_build:
- bash scripts/win/before_build.sh
build_script:
- bash scripts/win/build.sh
after_build:
- bash scripts/win/after_build.sh
artifacts:
- path: 'windows-tasmomanager-*-installer.exe'
name: Windows Installer
# Build MacOS packages
- matrix:
only:
- image: macOS
install:
- bash scripts/macOS/install.sh
before_build:
- bash scripts/macOS/before_build.sh
build_script:
- bash scripts/macOS/build.sh
after_build:
- bash scripts/macOS/after_build.sh
artifacts:
- path: build/*.dmg
name: DragAndDrop Installer
- path: build/*.pkg
name: Package Installer
# Build Linux packages
- matrix:
only:
- image: Ubuntu
install:
- bash scripts/linux/install.sh
before_build:
- bash scripts/linux/before_build.sh
build_script:
- bash scripts/linux/build.sh
after_build:
- bash scripts/linux/after_build.sh
artifacts:
- path: build/packages/*.deb
name: Debian Package
- path: build/packages/*.rpm
name: RPM Package
# Upload all packages to GitHub, but only if the push was tagged
deploy:
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: kOuvS5K+YgF6WCqkdU9EXV3eVDUhmnb7jSqY4WoZIrqFRMup7+NFR51LOaZSvOpm
artifact: /.*\.dmg/, /.*\.exe/, /.*\.pkg/, /.*\.deb/, /.*\.rpm/, /.*\.zip/, /.*\.tar.gz/
prerelease: true
force_update: true
on:
APPVEYOR_REPO_TAG: true