-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathappveyor.yml
More file actions
58 lines (58 loc) · 2.29 KB
/
Copy pathappveyor.yml
File metadata and controls
58 lines (58 loc) · 2.29 KB
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
version: 1.7.{build}.0
build_cloud: WIN-LKR467JS4GL
image: Windows
configuration: Release
branches:
only:
- master
- /v\d+\.\d+\.\d+/
skip_commits:
files:
- '**/*.md'
test: off
platform:
- x64 # ARM64 is built in the same job
install:
- cmd: git submodule update --init --recursive
- ps: Setup-VS2022
- ps: |
dotnet tool install --global wix --version 5.0.2
$dotnetTools = Join-Path $env:USERPROFILE '.dotnet/tools'
$env:PATH = "$dotnetTools;$env:PATH"
wix extension add -g WixToolset.UI.wixext/5.0.2
build:
parallel: true
verbosity: minimal
build_script:
# MSI staging driver test-sign: optional HIDHIDE_TEST_SIGN_PFX + HIDHIDE_TEST_SIGN_PFX_PASSWORD (encrypted). If unset, CI generates a throwaway code-signing PFX via PowerShell.
- ps: |
$env:PATH = "$(Join-Path $env:USERPROFILE '.dotnet/tools');$env:PATH"
$args = @('Ci', '--configuration', 'Release', '--platform', 'x64')
if ($env:HIDHIDE_TEST_SIGN_PFX) {
$args += '--hid-hide-test-sign-pfx'; $args += $env:HIDHIDE_TEST_SIGN_PFX
if ($env:HIDHIDE_TEST_SIGN_PFX_PASSWORD) { $args += '--hid-hide-test-sign-pfx-password'; $args += $env:HIDHIDE_TEST_SIGN_PFX_PASSWORD }
}
elseif ($env:HIDHIDE_TEST_SIGN_PFX_PASSWORD) { throw 'HIDHIDE_TEST_SIGN_PFX_PASSWORD is set but HIDHIDE_TEST_SIGN_PFX is not.' }
powershell -ExecutionPolicy Bypass -File ".\build.ps1" @args
- ps: |
$env:PATH = "$(Join-Path $env:USERPROFILE '.dotnet/tools');$env:PATH"
$args = @('Ci', '--configuration', 'Release', '--platform', 'ARM64')
if ($env:HIDHIDE_TEST_SIGN_PFX) {
$args += '--hid-hide-test-sign-pfx'; $args += $env:HIDHIDE_TEST_SIGN_PFX
if ($env:HIDHIDE_TEST_SIGN_PFX_PASSWORD) { $args += '--hid-hide-test-sign-pfx-password'; $args += $env:HIDHIDE_TEST_SIGN_PFX_PASSWORD }
}
elseif ($env:HIDHIDE_TEST_SIGN_PFX_PASSWORD) { throw 'HIDHIDE_TEST_SIGN_PFX_PASSWORD is set but HIDHIDE_TEST_SIGN_PFX is not.' }
powershell -ExecutionPolicy Bypass -File ".\build.ps1" @args
after_build:
# Cab generation moved into NUKE target `BuildCab` (part of `Ci`)
artifacts:
# Forward slashes: AppVeyor resolves these reliably from repo root.
- path: artifacts/msi/**/*.msi
- path: disk1/*.cab
- path: bin/**/*.pdb
- path: bin/**/HidHide*.exe
deploy:
- provider: Environment
name: BUILDBOT
on:
appveyor_repo_tag: true