-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
58 lines (52 loc) · 2.15 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
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
QTPATH: C:\Qt\5.13\msvc2017_64
OS: win64
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
VCVARSALL: x64
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
OS: linux
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
QTPATH: C:\Qt\5.13\msvc2017
OS: win32
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
VCVARSALL: x86
install:
- git submodule update --init --recursive
before_build:
# Windows
- cmd: set PATH=%QTPATH%\bin;C:\Qt\Tools\QtCreator\bin;%PATH%
- cmd: call %VCVARSALLPATH% %VCVARSALL%
# Linux
- sh: sudo apt-get -qq update
- sh: sudo apt-get install -y build-essential qtbase5-dev qt5-qmake qt5-default libqt5serialport5-dev
build_script:
- qmake NXController.pro
# Windows
- cmd: jom -j %NUMBER_OF_PROCESSORS%
# Linux
- sh: make -j $(nproc)
after_build:
# Windows
- cmd: md NXController-windows
- cmd: move release\NXController.exe NXController-windows\NXController.exe
- cmd: windeployqt --release --no-translations --no-angle --no-plugins --no-opengl-sw NXController-windows\NXController.exe
- cmd: del NXController-windows\vc_redist*.exe
- cmd: xcopy /I %QTPATH%\plugins\platforms\qwindows.dll NXController-windows\platforms\
- cmd: xcopy /I %QTPATH%\plugins\styles\qwindowsvistastyle.dll NXController-windows\styles\
- cmd: xcopy /I bin\Joystick.hex NXController-windows\
- cmd: xcopy /I bin\atmosphere\contents\430000000000000B\exefs.nsp NXController-windows\atmosphere\contents\430000000000000B\
- cmd: 7z a NXController-%OS%.zip NXController-windows\
# Linux
- sh: zip -r NXController-linux.zip NXController bin
artifacts:
- path: NXController-%OS%.zip
deploy:
provider: GitHub
description: ''
auth_token:
secure: 87c2VphfLpaiV8R+d5PPLixGQ42EVqHL04XoWsHezFSOOrjpiHUYCRYavL5g731Y
artifact: NXController-%OS%.zip
on:
APPVEYOR_REPO_TAG: true