forked from mpromonet/webrtc-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
56 lines (47 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
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CLANG_VERSION: ToT
MSVC_SETUP_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
MSVC_SETUP_ARG: x64
platform: x64
configuration:
- Release
- Debug
install:
- cmd: set DEPOT_TOOLS_WIN_TOOLCHAIN=0
- cmd: set PATH=%APPVEYOR_BUILD_FOLDER%\..\depot_tools;%PATH%
- sh: export PATH=${APPVEYOR_BUILD_FOLDER}/../depot_tools:${PATH}
- cmd: set
- sh: env
- cd ..
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- mkdir webrtc
- cd webrtc
- fetch --no-history --nohooks webrtc
- cd src
- ps: echo CONFIGURATION=$env:CONFIGURATION PLATFORM=$env:PLATFORM
- ps: (get-content DEPS) | foreach-object {$_ -replace "'src/resources'],", "'src/resources'],'condition':'rtc_include_tests==true',"} | set-content DEPS
- gclient sync
- sh: sudo apt-get update && sudo apt-get install -y --no-install-recommends autoconf automake libtool xz-utils libgtk-3-dev libasound2-dev
before_build:
- cmd: call "%MSVC_SETUP_PATH%" %MSVC_SETUP_ARG%
- ps: cd $env:APPVEYOR_BUILD_FOLDER
- cmd: cmake -G Ninja -D WEBRTCBUILD=%CONFIGURATION% -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe .
- sh: cmake -G Ninja -D WEBRTCBUILD=${CONFIGURATION} .
build_script:
- ninja
after_build:
- ps: cpack -C "$env:CONFIGURATION"
artifacts:
- path: webrtc-streamer*.tar.gz
deploy:
provider: GitHub
auth_token:
secure: Ov3sAkiU1iRjAOc7GYaScSUujzhKiTCz/gZ4uQws2fTaNu8O5FUciAQk4uuGeiC7
draft: false
prerelease: false
on:
branch: master
APPVEYOR_REPO_TAG: true