Skip to content

Commit

Permalink
Create dotnet-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Codespilot authored Jul 3, 2023
1 parent a56fcd4 commit 31c4a2f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: Build

on:
push:
branches:
- '*'
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x', '6.0.x' ]
configuration: [Debug, Release]

steps:
- name: Checkout
uses: actions/checkout@v3

# Install the .NET workload
- name: Install .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Restore packages
run: dotnet restore Euonia.sln

- name: Build
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore

0 comments on commit 31c4a2f

Please sign in to comment.