VoiDPlugins/.github/workflows/dotnet-core.yml
2020-07-30 06:57:11 +08:00

41 lines
1 KiB
YAML

name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
jobs:
build:
strategy:
matrix:
plugin: [MLFilter, OemKill]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup ${{ matrix.net }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Build
env:
plugin: ${{ matrix.plugin }}
run: dotnet publish $plugin --configuration Release --framework netcoreapp3.1 -o ./build/netcoreapp3.1/$plugin
- name: Upload ${{ matrix.plugin }}
uses: actions/upload-artifact@main
with:
name: ${{ matrix.plugin }}
path: |
./build/netcoreapp3.1/${{ matrix.plugin }}/*.dll
!./build/netcoreapp3.1/${{ matrix.plugin }}/*.json
!./build/netcoreapp3.1/${{ matrix.plugin }}/TabletDriverPlugin.dll
!./build/netcoreapp3.1/${{ matrix.plugin }}/Newtonsoft.Json.dll