.github/workflows/dotnet-build.yml
name: dotnet build
on:
push:
paths:
- 'src/**'
- 'test/**'
pull_request:
paths:
- 'src/**'
- 'test/**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
dotnet-version: ['7.0.x']
steps:
- uses: actions/checkout@v3
- name: setup
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
include-prerelease: true
- name: restore
run: dotnet restore
- name: build
run: dotnet build --configuration Release --no-restore