-
Notifications
You must be signed in to change notification settings - Fork 604
/
appveyor.yml
46 lines (36 loc) · 1.69 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
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
- APPVEYOR_BUILD_WORKER_IMAGE: macos
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CLANG_VERSION: ToT
DEPOT_TOOLS_WIN_TOOLCHAIN: 0
platform: x64
configuration:
- Release
- Debug
install:
- cmd: set PATH=%APPVEYOR_BUILD_FOLDER%\depot_tools;%PATH%
- sh: export PATH=${APPVEYOR_BUILD_FOLDER}/depot_tools:${PATH}
- sh: "[ ${CI_LINUX:-false} == true ] && sudo apt-get update && sudo apt-get install -y --no-install-recommends libgtk-3-dev libasound2-dev libpulse-dev || :"
- cmd: git config --global core.autocrlf false
- cmd: git config --global core.filemode false
- 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
before_build:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\%APPVEYOR_BUILD_WORKER_IMAGE:~-4%\Community\VC\Auxiliary\Build\vcvars64.bat"
- ps: cd $env:APPVEYOR_BUILD_FOLDER
- cmd: cmake -G Ninja -D CMAKE_BUILD_TYPE=%CONFIGURATION% -DWEBRTCROOT=%APPVEYOR_BUILD_FOLDER:\=/%/webrtc -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe .
- sh: cmake -G Ninja -D CMAKE_BUILD_TYPE=${CONFIGURATION} -DWEBRTCROOT=${APPVEYOR_BUILD_FOLDER}/webrtc -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
build_script:
- ninja
after_build:
- ps: cpack -C "$env:CONFIGURATION"
artifacts:
- path: webrtc-streamer*.tar.gz