38 lines
824 B
YAML
38 lines
824 B
YAML
name: build-validation
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- '**.cs'
|
|
- '**.csproj'
|
|
|
|
|
|
env:
|
|
DOTNET_VERSION: '6.x'
|
|
|
|
jobs:
|
|
build:
|
|
name: build-windows
|
|
runs-on: [ windows-latest ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
|
|
- name: Publish artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: build
|
|
path: BAKKA-Editor\bin\Release\net6.0-windows\
|