mirror of
https://github.com/DigitalDevices/pvr.octonet.git
synced 2023-10-10 13:36:57 +02:00
udpate appveyor.yml build script
This commit is contained in:
parent
2d5e55b05d
commit
07ef28ed18
45
appveyor.yml
45
appveyor.yml
@ -1,40 +1,33 @@
|
|||||||
version: BuildNr.{build}
|
version: BuildNr.{build}
|
||||||
|
|
||||||
init:
|
image: Visual Studio 2017
|
||||||
- ps: $commit = $env:appveyor_repo_commit.SubString(0,7)
|
|
||||||
- ps: $timestamp = $env:appveyor_repo_commit_timestamp.SubString(0,10)
|
shallow_clone: true
|
||||||
- ps: Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:appveyor_repo_branch, $commit, $timestamp)
|
|
||||||
|
|
||||||
# clone directory
|
|
||||||
clone_folder: c:\projects\pvr.octonet
|
clone_folder: c:\projects\pvr.octonet
|
||||||
|
|
||||||
# fetch repository as zip archive
|
|
||||||
shallow_clone: true # default is "false"
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
ADDON: pvr.octonet
|
app_id: pvr.octonet
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
#- GENERATOR: "Visual Studio 14"
|
- GENERATOR: "Visual Studio 15"
|
||||||
# CONFIG: Debug
|
|
||||||
|
|
||||||
- GENERATOR: "Visual Studio 14"
|
|
||||||
CONFIG: Release
|
CONFIG: Release
|
||||||
|
- GENERATOR: "Visual Studio 15 Win64"
|
||||||
artifacts:
|
CONFIG: Release
|
||||||
- path: build/install/
|
- GENERATOR: "Visual Studio 15 Win64"
|
||||||
name: pvr.octonet
|
CONFIG: Release
|
||||||
type: zip
|
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
|
||||||
|
- GENERATOR: "Visual Studio 15 ARM"
|
||||||
|
CONFIG: Release
|
||||||
|
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- cd ..
|
- cd ..
|
||||||
- set ROOT=%cd%
|
- git clone --branch Matrix --depth=1 https://github.com/xbmc/xbmc.git
|
||||||
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
|
- cd %app_id%
|
||||||
- mkdir xbmc\cmake\addons\addons\pvr.octonet
|
|
||||||
- echo pvr.octonet https://github.com/DigitalDevices/pvr.octonet master > xbmc\cmake\addons\addons\pvr.octonet\pvr.octonet.txt
|
|
||||||
- cd %ADDON%
|
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
# Must use absolute path for cmake to build depends correctly
|
- mkdir -p definition\%app_id%
|
||||||
- cmake -G "%GENERATOR%" -DADDONS_TO_BUILD=%ADDON% -DCMAKE_BUILD_TYPE=%CONFIG% -DADDON_SRC_PREFIX=%ROOT% -DCMAKE_INSTALL_PREFIX=install -DPACKAGE_ZIP=1 %ROOT%\xbmc\cmake\addons
|
- echo %app_id% %APPVEYOR_BUILD_FOLDER% %APPVEYOR_REPO_COMMIT% > definition\%app_id%\%app_id%.txt
|
||||||
- cmake --build . --config %CONFIG%
|
- cmake -T host=x64 -G "%GENERATOR%" %WINSTORE% -DADDONS_TO_BUILD=%app_id% -DCMAKE_BUILD_TYPE=%CONFIG% -DADDONS_DEFINITION_DIR=%APPVEYOR_BUILD_FOLDER%/build/definition -DADDON_SRC_PREFIX=../.. -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons
|
||||||
|
- cmake --build . --config %CONFIG% --target %app_id%
|
||||||
|
Loading…
Reference in New Issue
Block a user