-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
59 lines (57 loc) · 1.7 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
version: "0.1-{build}"
environment:
global:
LOCC_VERSION: "0.1"
matrix:
- job_name: Windows x64
appveyor_build_worker_image: Visual Studio 2019 Preview
- job_name: Linux x64
appveyor_build_worker_image: Ubuntu
configuration:
- Release
install:
- cmd: cmake -G "Visual Studio 16 2019" .
- sh: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt -qq update -y && sudo apt -qq install -y gcc-10 g++-10
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=$CONFIGURATION .
for:
- matrix:
only:
- job_name: Windows x64
build:
project: locc.sln
parallel: true
verbosity: minimal
artifacts:
- path: locc-v0.1-Windows-x64.zip
- matrix:
only:
- job_name: Linux x64
build_script:
- sh: echo -e "Version=$LOCC_VERSION\n == Building Linux $CONFIGURATION ==" && cmake --build . -v || exit 1
artifacts:
- path: locc-v0.1-Linux-x64.tar.gz
test_script:
- cmd: |
.\Release\locc.exe -dbv . || exit 1
.\Release\locc.exe --version || exit 1
- sh: ./locc -db --verbose . || exit 1; ./locc --version || exit 1
after_build:
- cmd: 7z a locc-v0.1-Windows-x64.zip %APPVEYOR_BUILD_FOLDER%\Release\locc.exe
- sh: tar -caf locc-v0.1-Linux-x64.tar.gz locc
deploy:
- provider: GitHub
tag: "v0.1"
release: "locc-v0.1"
description: "Instigator: Appveyor CI script"
auth_token:
secure: Q4k4QeaxqXS7TIPI+dKfG8m2a8RTpP9G4sbpxhA9isKu3PgZywKwy5+ecPXyS7A5
artifact: locc-v0.1-Windows-x64.zip,locc-v0.1-Linux-x64.tar.gz
draft: true
prerelease: true
on:
APPVEYOR_REPO_TAG: true
matrix:
fast_finish: true
skip_branch_with_pr: true