Skip to content

Commit 0bb5ac0

Browse files
committed
Set up CI with Azure Pipelines
1 parent e0ddc9d commit 0bb5ac0

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

azure-pipelines.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
variables:
2+
app_id: 'audiodecoder.nosefart'
3+
4+
trigger:
5+
branches:
6+
include:
7+
- Matrix
8+
- releases/*
9+
paths:
10+
include:
11+
- '*'
12+
exclude:
13+
- 'debian/*'
14+
15+
jobs:
16+
- job: Windows
17+
18+
pool:
19+
vmImage: 'VS2017-Win2016'
20+
21+
strategy:
22+
matrix:
23+
Win32:
24+
GENERATOR: "Visual Studio 15 2017"
25+
ARCHITECTURE: Win32
26+
CONFIGURATION: Release
27+
Win64:
28+
GENERATOR: "Visual Studio 15 2017"
29+
ARCHITECTURE: x64
30+
CONFIGURATION: Release
31+
Win64-UWP:
32+
GENERATOR: "Visual Studio 15 2017"
33+
ARCHITECTURE: x64
34+
CONFIGURATION: Release
35+
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
36+
ARM64-UWP:
37+
GENERATOR: "Visual Studio 15 2017"
38+
ARCHITECTURE: ARM64
39+
CONFIGURATION: Release
40+
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
41+
42+
workspace:
43+
clean: all
44+
45+
steps:
46+
47+
- script: |
48+
cd ..
49+
git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git kodi
50+
cd $(Build.SourcesDirectory)
51+
mkdir build
52+
cd build
53+
mkdir "definition/$(app_id)"
54+
echo $(app_id) . . > definition/$(app_id)/$(app_id).txt
55+
mklink /J "$(Pipeline.Workspace)/$(app_id)" "$(Build.SourcesDirectory)"
56+
57+
- task: CMake@1
58+
inputs:
59+
workingDirectory: 'build'
60+
cmakeArgs: '-T host=x64 -G "$(GENERATOR)" -A $(ARCHITECTURE) $(WINSTORE) -DADDONS_TO_BUILD=$(app_id) -DCMAKE_BUILD_TYPE=$(CONFIGURATION) -DADDONS_DEFINITION_DIR=$(Pipeline.Workspace)/$(app_id)/build/definition -DADDON_SRC_PREFIX=../.. -DCMAKE_INSTALL_PREFIX=../../kodi/addons -DPACKAGE_ZIP=1 ../../kodi/cmake/addons'
61+
62+
- task: CMake@1
63+
inputs:
64+
workingDirectory: 'build'
65+
cmakeArgs: '--build . --config $(CONFIGURATION) --target $(app_id)'

0 commit comments

Comments
 (0)