generated from mbucchia/OpenXR-Layer-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (74 loc) · 2.52 KB
/
msbuild.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: MSBuild
on:
push:
branches:
- main
- release/*
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
- release/*
workflow_dispatch:
env:
SOLUTION_FILE_PATH: XR_APILAYER_MBUCCHIA_eye_trackers.sln
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-latest
environment: build-and-sign
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Checkout submodules
working-directory: ${{env.GITHUB_WORKSPACE}}
run: git submodule update --init
- name: Setup DevEnv
uses: seanmiddleditch/gha-setup-vsdevenv@v4
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.8
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
env:
PFX_PASSWORD: ${{ secrets.PFX_PASSWORD }}
PFX_NAME: "comodo"
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
# Need to build vdproj. We must invoke this tool from inside its own folder.
$DisableOutOfProcBuild=$(vswhere -latest -find **\DisableOutOfProcBuild.exe)
Push-Location $(Split-Path $DisableOutOfProcBuild)
& $DisableOutOfProcBuild
Pop-Location
# Finally, we may build the project.
devenv.com ${{env.SOLUTION_FILE_PATH}} /Build "${{env.BUILD_CONFIGURATION}}|x64"
- name: Signing
env:
PFX_PASSWORD: ${{ secrets.PFX_PASSWORD }}
PFX_NAME: "comodo"
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
$pfxName = if ($env:PFX_NAME) { $env:PFX_NAME } else { "selfsigncert" };
installer/signtool.exe sign /d "OpenXR Eye Trackers" /du "https://github.com/mbucchia/OpenXR-Eye-Trackers" /f installer/$pfxName.pfx /p "$env:PFX_PASSWORD" /v installer/output/OpenXR-Eye-Trackers.msi
- name: Publish
uses: actions/upload-artifact@v2
with:
name: Setup
path: |
installer/output/OpenXR-Eye-Trackers.msi
bin/x64/Release/XR_APILAYER_MBUCCHIA_eye_trackers.pdb
- name: Publish
uses: actions/upload-artifact@v2
with:
name: DeveloperPackage
path: |
bin/x64/Release/XR_APILAYER_MBUCCHIA_eye_trackers.dll
bin/x64/Release/XR_APILAYER_MBUCCHIA_eye_trackers.pdb
bin/x64/Release/openxr-api-layer.json
bin/x64/Release/jsoncpp.dll
bin/x64/Release/libzmq-mt-4_3_3.dll
bin/x64/Release/VarjoLib.dll