Skip to content

Commit

Permalink
Add GitHub Actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwood committed Oct 5, 2021
1 parent bfc6e30 commit fdc2fda
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: build

on:
push:
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'

env:
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use

jobs:
build-and-test:

name: build-and-test-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
include-prerelease: true

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

0 comments on commit fdc2fda

Please sign in to comment.