43 lines
879 B
YAML
Raw Normal View History

2022-06-10 16:14:09 -05:00
name: 'Build Plugin'
2022-06-10 16:19:07 -05:00
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2022-06-10 16:25:44 -05:00
2022-06-10 16:19:07 -05:00
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
2022-06-10 16:25:44 -05:00
2022-06-10 16:19:07 -05:00
- name: Restore dependencies
run: dotnet restore
2022-06-10 16:25:44 -05:00
2022-06-10 16:19:07 -05:00
- name: Install fpcalc
2022-06-10 16:47:46 -05:00
run: |
sudo apt-get update
sudo apt-get install -y libchromaprint-tools
2022-06-10 16:25:44 -05:00
2022-06-10 16:19:07 -05:00
- name: Test
2022-06-10 16:31:51 -05:00
run: dotnet test --verbosity normal
2022-06-10 16:25:44 -05:00
2022-06-10 16:19:07 -05:00
- name: Build
run: dotnet build --no-restore
2022-06-10 16:47:46 -05:00
- name: Upload artifact
uses: actions/upload-artifact@v3.1.0
with:
name: intro-skipper-${{ github.sha }}.dll
path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
if-no-files-found: error