-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
55 lines (51 loc) · 2.16 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
environment:
JOKER_RELEASE_PATH: .
QTDIR: C:\Qt\5.4\mingw491_32
BOOST_PATH: C:\Libraries\boost
#branches:
# except:
# - /^skipthisbranch$/
install:
- git submodule update --init --recursive
# Installing various utilities
- choco install -y curl innosetup
- set PATH="C:\Program Files\7-Zip";"C:\Program Files (x86)\Inno Setup 5";%PATH%
# Configuring Qt
- set PATH=%QTDIR%\bin;C:\Qt\Tools\mingw491_32\bin;%PATH%
# Installing ffmpeg dev
- curl -kLO https://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-3.4.2-win32-dev.zip
- 7z x ffmpeg-3.4.2-win32-dev.zip
- set FFMPEG_DEV_PATH=%CD%\ffmpeg-3.4.2-win32-dev
# Installing ffmpeg shared
- curl -kLO https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-3.4.2-win32-shared.zip
- 7z x ffmpeg-3.4.2-win32-shared.zip
- set FFMPEG_SHARED_PATH=%CD%\ffmpeg-3.4.2-win32-shared
# Installing PortAudio
- curl -kLO https://github.com/adfernandes/precompiled-portaudio-windows/raw/master/portaudio-r1891-build.zip
- 7z x portaudio-r1891-build.zip
- set PORTAUDIO_PATH=%CD%\portaudio-r1891-build
# Installing libltc
- curl -kLO https://github.com/x42/libltc/releases/download/v1.1.4/libltc-1.1.4.tar.gz
- 7z x libltc-1.1.4.tar.gz
- 7z x libltc-1.1.4.tar
- set LTC_PATH=%CD%\libltc-1.1.4\src
# prepare a commit descriptor and the source branch to define the release name
- ps: $env:COMMIT_DESCRIPTOR = git describe --tags
- ps: if(Test-Path env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:BRANCH = $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH } else { $env:BRANCH = $env:APPVEYOR_REPO_BRANCH }
build_script:
- qmake app/Joker/Joker.pro
- mingw32-make -j 8
- iscc app/Joker/Joker.iss /DPWD=%CD% /O%JOKER_RELEASE_PATH%
- dir
artifacts:
- path: Joker_*.exe
deploy:
provider: GitHub
auth_token:
secure: Kg4Co6bJ5WJmeM0Gw33qbWylubqcGQga0kkGmVScP8XNzfxYUsLUAA4g5qO4Htjo
artifact: /Joker_v[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.exe/
draft: true # needs manual publishing
prerelease: false
release: "Joker $(COMMIT_DESCRIPTOR) $(BRANCH)"
on:
branch: master # unlike Travis, it is possible to retrieve the build artefacts from AppVeyor web interface, so publishing from master only is fine