-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathappveyor.yml
54 lines (52 loc) · 1.55 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
version: 1.0.{build}
configuration: Release
platform: x64
image:
- Ubuntu2004
- Visual Studio 2019
environment:
CTEST_OUTPUT_ON_FAILURE: 1
install:
- sh: sudo apt-get update -qq && sudo apt-get install -qq
- sh: sudo apt-get -y install libgl1-mesa-dev
- git submodule update --init qt-creator
before_build:
- cmd: 'cmake ./ -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH=C:/Qt/6.4/msvc2019_64 -DQMLFMT_VERSION:STRING=%APPVEYOR_REPO_TAG_NAME% -DQMLFMT_COMMIT:STRING=%APPVEYOR_REPO_COMMIT%'
- sh: 'cmake ./ -DCMAKE_BUILD_TYPE=$Configuration -DCMAKE_PREFIX_PATH=$HOME/Qt/6.4/gcc_64 -DQMLFMT_VERSION:STRING=%APPVEYOR_REPO_TAG_NAME% -DQMLFMT_COMMIT:STRING=%APPVEYOR_REPO_COMMIT%'
build_script:
- cmd: msbuild qmlfmt.sln /p:Configuration=Release -maxcpucount
- sh: make qmlfmt -j 2
after_build:
- cmd: 7z a qmlfmt-windows.zip %APPVEYOR_BUILD_FOLDER%\Release\qmlfmt.exe
- sh: 7z a qmlfmt-linux.zip qmlfmt
test_script:
- cmd: >-
set PATH=C:\Qt\6.4\msvc2019_64\bin;%PATH%
msbuild check.vcxproj
- sh: make check
for:
-
matrix:
only:
- image: Visual Studio 2019
artifacts:
- path: qmlfmt-windows.zip
name: qmlfmt-windows
-
matrix:
only:
- image: Ubuntu2004
artifacts:
- path: qmlfmt-linux.zip
name: qmlfmt-linux
deploy:
- provider: GitHub
auth_token:
secure: XIz4qTwkoW4CJdlLJMCP0u5rVojet+W6/PtmACrj1cHfQym8RWpg57omgV3nCKME
artifact: qmlfmt-linux, qmlfmt-windows
on:
branch: master
APPVEYOR_REPO_TAG: true
branches:
only:
- master