VoiDPlugins/.github/workflows/dotnet-core.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2020-07-21 10:26:33 +08:00
name: .NET Core
2020-09-03 01:29:25 +08:00
on: [push, pull_request, workflow_dispatch]
2020-07-21 10:26:33 +08:00
jobs:
2020-07-21 10:26:33 +08:00
build:
strategy:
matrix:
2020-12-02 18:12:36 +08:00
plugin: [MeL, OemKill, PrecisionControl, Reconstructor, ScriptRunner, TouchEmu, VMultiMode, WindowsInk]
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
- name: Setup ${{ matrix.net }}
uses: actions/setup-dotnet@main
with:
dotnet-version: '5.0.100'
- name: Build
2020-07-26 15:06:16 +08:00
env:
plugin: ${{ matrix.plugin }}
run: dotnet publish $plugin --configuration Release --framework net5 -o ./build/$plugin
- name: Upload ${{ matrix.plugin }}
2020-07-26 14:07:13 +08:00
uses: actions/upload-artifact@main
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