Skip to content

Fix NuGet package to include native libraries #7

Fix NuGet package to include native libraries

Fix NuGet package to include native libraries #7

Workflow file for this run

name: build
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [windows-2019, ubuntu-18.04, macos-10.15]
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- name: Setup .NET 3.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Setup .NET 5.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Checkout
uses: actions/checkout@v2
- name: Install coverlet
if: matrix.os == 'ubuntu-18.04'
run: |
dotnet add tests/tests.csproj package coverlet.msbuild
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Code coverage
if: matrix.os == 'ubuntu-18.04'
uses: codecov/codecov-action@v1
with:
files: ./tests/coverage.info
flags: unittests