-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (38 loc) · 1.29 KB
/
dotnet.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
name: .NET
on: [push, pull_request]
jobs:
Build:
strategy:
matrix:
include:
- { path: Binding, plugin: ScriptRunner }
- { path: Filter, plugin: MeL }
- { path: Filter, plugin: PrecisionControl }
- { path: Filter, plugin: Reconstructor }
- { path: OutputMode, plugin: TouchEmu }
- { path: OutputMode, plugin: VMultiMode }
- { path: OutputMode, plugin: WindowsInk }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@main
with:
dotnet-version: '6.0'
- name: Build
env:
path: ${{ matrix.path }}
plugin: ${{ matrix.plugin }}
run: dotnet publish ./src/$path/$plugin --configuration Release --framework net6.0 -o ./build/$plugin
- uses: actions/upload-artifact@main
with:
name: ${{ matrix.plugin }}
path: |
./build/${{ matrix.plugin }}/*.dll
!./build/${{ matrix.plugin }}/*.json
!./build/${{ matrix.plugin }}/*.pdb
!./build/${{ matrix.plugin }}/OpenTabletDriver.Plugin.dll
!./build/${{ matrix.plugin }}/Newtonsoft.Json.dll
!./build/${{ matrix.plugin }}/HidSharpCore.dll