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 } - { path: Tool, plugin: OemKill } runs-on: ubuntu-latest steps: - uses: actions/checkout@master with: submodules: recursive - name: Setup NET 5 uses: actions/setup-dotnet@main with: dotnet-version: 5.0.x - name: Build env: path: ${{ matrix.path }} plugin: ${{ matrix.plugin }} run: dotnet publish $path/$plugin --configuration Release --framework net5 -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