2021-09-04 21:55:11 +03:00
|
|
|
name: CI
|
|
|
|
on:
|
2021-09-04 22:07:40 +03:00
|
|
|
workflow_dispatch:
|
2021-09-04 21:55:11 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2021-09-05 01:05:13 +03:00
|
|
|
build:
|
2021-09-05 01:41:51 +03:00
|
|
|
env:
|
|
|
|
BUILD_CONFIG: 'Release'
|
|
|
|
SOLUTION: 'MySolution.sln'
|
2021-09-04 22:00:41 +03:00
|
|
|
runs-on: windows-latest
|
2021-09-04 21:55:11 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-05 01:41:51 +03:00
|
|
|
|
|
|
|
- name: Setup NuGet
|
|
|
|
uses: NuGet/setup-nuget@v1.0.5
|
2021-09-04 21:55:11 +03:00
|
|
|
|
2021-09-05 01:41:51 +03:00
|
|
|
- name: Restore dependencies
|
|
|
|
run: nuget restore DarkUI.sln
|
|
|
|
|
2021-09-04 21:55:11 +03:00
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 5.0.x
|
|
|
|
|
|
|
|
- name: Build
|
2021-09-05 01:35:19 +03:00
|
|
|
run: dotnet build DarkUI.sln --configuration Release
|
2021-09-05 00:47:19 +03:00
|
|
|
|
2021-09-05 12:30:38 +03:00
|
|
|
- name: Build Config
|
|
|
|
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore
|
|
|
|
|