-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
appveyor.yml
68 lines (68 loc) · 2.14 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
60
61
62
63
64
65
66
67
68
version: 3.3.{build}.0
build_cloud: WIN-LKR467JS4GL
image: Windows
test: off
environment:
DmfRootPath: C:\projects\DMF
DOMITO_INC_PATH: C:\projects\Domito\include
DOMITO_LIB_PATH: C:\projects\Domito\lib
SCPLIB_ENABLE_TELEMETRY: "false"
platform:
- x64
- ARM64
- x86
configuration:
- Release
branches:
only:
- master
- /v\d+\.\d+\.\d+\.\d+/
skip_commits:
files:
- '**/*.md'
- '**/*.aip'
- '.vscode/*'
- '**/*.json'
- 'setup/*'
install:
- cmd: git submodule -q update --init
- cmd: git clone -q https://github.com/microsoft/DMF.git C:\projects\DMF 2> nul || set ERRORLEVEL=0
- cmd: |
cd "C:\projects\DMF"
git pull > NUL
cd %appveyor_build_folder%
- cmd: mklink /J "%APPVEYOR_BUILD_FOLDER%\XInputBridge\vcpkg_installed" "C:\tools\build-cache\dshidmini\XInputBridge\vcpkg_installed\%PLATFORM%"
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- cmd: nuget restore
#- cmd: dotnet tool install --global Nefarius.Tools.Vpatch
- cmd: vpatch --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\sys\dshidmini.vcxproj" --vcxproj.inf-time-stamp
- cmd: vpatch --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\sys\dshidmini.rc" --resource.file-version --resource.product-version
- cmd: vpatch --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\XInputBridge\XInputBridge.rc" --resource.file-version --resource.product-version
- cmd: dotnet restore .\ControlApp\
- cmd: dotnet restore .\ipctest\
build_script:
- cmd: .\build.cmd
- cmd: if %PLATFORM%==x64 dotnet publish /p:PublishProfile=Properties\PublishProfiles\release-win-x64.pubxml .\ControlApp\
after_build:
- cmd: if not %PLATFORM%==x86 makecab.exe /f .\DsHidMini_%PLATFORM%.ddf
artifacts:
- path: 'disk1\*.cab'
- path: 'bin**\$(APPVEYOR_PROJECT_NAME)\*.inf'
- path: 'bin**\$(APPVEYOR_PROJECT_NAME)\*.cat'
- path: 'bin**\$(APPVEYOR_PROJECT_NAME)\*.dll'
- path: 'bin**\*.pdb'
- path: 'bin**\*.dll'
- path: 'bin\*.exe'
deploy:
- provider: Environment
name: BUILDBOT
on:
appveyor_repo_tag: true