-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (39 loc) · 1.86 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
48
49
50
51
52
name: Build Plugins
on: [push, pull_request]
jobs:
build:
runs-on: [windows-latest]
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Clone Plugins
uses: actions/checkout@v3
- name: Build LightFx Wrapper dll
run: MSBuild.exe src/LightFx/Artemis.Wrappers.LightFx/Artemis.Wrappers.LightFx.vcxproj /p:Platform=x64 /p:Configuration=Release
- name: Build Razer Wrapper dll
run: MSBuild.exe src/Razer/Artemis.Wrappers.Razer/Artemis.Wrappers.Razer.vcxproj /p:Platform=x64 /p:Configuration=Release
- name: Build LightFx Plugin
run: dotnet publish -c Release src/LightFx/Artemis.Plugins.Wrappers.LightFx/Artemis.Plugins.Wrappers.LightFx.csproj
- name: Build Logitech Plugin
run: dotnet publish -c Release src/Logitech/Artemis.Plugins.Wrappers.Logitech/Artemis.Plugins.Wrappers.Logitech.csproj
- name: Build Razer Plugin
run: dotnet publish -c Release src/Razer/Artemis.Plugins.Wrappers.Razer/Artemis.Plugins.Wrappers.Razer.csproj
- name: Upload LightFx Wrapper
uses: actions/upload-artifact@v3
with:
name: Artemis.Plugins.Wrappers.LightFx
path: src/LightFx/Artemis.Plugins.Wrappers.LightFx/bin/Release/net7.0-windows/publish
- name: Upload Logitech Wrapper
uses: actions/upload-artifact@v3
with:
name: Artemis.Plugins.Wrappers.Logitech
path: src/Logitech/Artemis.Plugins.Wrappers.Logitech/bin/Release/net7.0-windows/publish
- name: Upload Razer Wrapper
uses: actions/upload-artifact@v3
with:
name: Artemis.Plugins.Wrappers.Razer
path: src/Razer/Artemis.Plugins.Wrappers.Razer/bin/Release/net7.0-windows/publish