forked from nefarius/DsHidMini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (64 loc) · 2.16 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
version: 3.0.{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: "true"
platform:
- x64
- ARM64
- x86
configuration:
- Release
skip_commits:
files:
- '**/*.md'
- '**/*.aip'
- '.vscode/*'
- '**/*.json'
- 'setup/*'
install:
#- cmd: vcpkg integrate install
#- cmd: vcpkg update
# manifest mode takes forever to build each commit so use global copy instead
- cmd: vcpkg install hidapi:%PLATFORM%-windows-static spdlog:%PLATFORM%-windows-static abseil:%PLATFORM%-windows-static winreg:%PLATFORM%-windows-static opentelemetry-cpp[otlp-grpc]:%PLATFORM%-windows-static
- 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%
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: vpatch.exe --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\sys\dshidmini.vcxproj" --vcxproj.inf-time-stamp
- cmd: vpatch.exe --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\sys\dshidmini.rc" --resource.file-version --resource.product-version
- cmd: vpatch.exe --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\XInputBridge\XInputBridge.rc" --resource.file-version --resource.product-version
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