Skip to content

Update CI to use gh instead of hub #83

Update CI to use gh instead of hub

Update CI to use gh instead of hub #83

Workflow file for this run

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