VoiDPlugins/.github/workflows/dotnet.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

name: .NET
2020-07-21 10:26:33 +08:00
2020-12-13 09:53:01 +08:00
on: [push, pull_request]
2020-07-21 10:26:33 +08:00
jobs:
2020-12-13 09:53:01 +08:00
Build:
strategy:
matrix:
2020-12-13 09:53:01 +08:00
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 }
- { path: Tool, plugin: OemKill }
2020-07-21 10:26:33 +08:00
runs-on: ubuntu-latest
steps:
2020-08-28 03:24:37 +08:00
- uses: actions/checkout@master
with:
submodules: recursive
2020-12-02 18:13:26 +08:00
- name: Setup NET 5
uses: actions/setup-dotnet@main
with:
dotnet-version: 5.0.x
- name: Build
2020-07-26 15:06:16 +08:00
env:
2020-12-13 09:53:01 +08:00
path: ${{ matrix.path }}
2020-07-26 15:06:16 +08:00
plugin: ${{ matrix.plugin }}
2020-12-13 09:53:01 +08:00
run: dotnet publish $path/$plugin --configuration Release --framework net5 -o ./build/$plugin
2020-12-13 09:53:01 +08:00
- uses: actions/upload-artifact@main
2020-07-26 14:07:13 +08:00
with:
name: ${{ matrix.plugin }}
2020-07-26 14:07:13 +08:00
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
2020-11-22 18:17:32 +08:00
!./build/${{ matrix.plugin }}/HidSharpCore.dll