-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.45 KB
/
build.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
name: Check-Build
on: [push]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: ['7.0.203' ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.203'
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build the OpenVR driver
run: |
nuget restore
msbuild /restore /p:Platform=x64 /p:PlatformTarget=x64 /p:Configuration=Release /p:RuntimeIdentifier=win10-x64 /t:driver_Amethyst
- name: Restore and build (publish)
run: msbuild /restore /p:Platform=x64 /p:PlatformTarget=x64 /p:Configuration=Release /p:RuntimeIdentifier=win10-x64 /t:plugin_OpenVR:Publish /p:PublishProfile=plugin_OpenVR\Properties\PublishProfiles\FolderProfile.pubxml
- name: Pack published files
run: |
cd plugin_OpenVR/bin/Release/net7.0/win10-x64/publish
7z a plugin_OpenVR.zip *
- name: Upload plugin artifact
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "plugin_OpenVR Build Artifact"
files: |
./plugin_OpenVR/bin/Release/net7.0/win10-x64/publish/plugin_OpenVR.zip
./external/manifest.json