Skip to content

Merge pull request #116 from YuuukiA/Issue115-fix-BorderForMouseOver-… #57

Merge pull request #116 from YuuukiA/Issue115-fix-BorderForMouseOver-…

Merge pull request #116 from YuuukiA/Issue115-fix-BorderForMouseOver-… #57

Workflow file for this run

name: Build WPF Designer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
Configuration: [ Debug, Release ]
env:
BuildPlatform: 'Any CPU'
BuildVersion: '8.1.${{ github.run_number }}'
steps:
- uses: actions/checkout@v4
- name: Update project version
uses: roryprimrose/set-vs-sdk-project-version@v1
with:
projectFilter: '**/*.csproj'
version: ${{ env.BuildVersion }}
assemblyVersion: ${{ env.BuildVersion }}
fileVersion: ${{ env.BuildVersion }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Setup NuGet.exe
uses: nuget/setup-nuget@v2
- run: nuget restore WpfDesign.sln
- name: Build
run: dotnet build WpfDesign.sln --no-restore -c ${{ matrix.configuration }}
- name: Test
run: dotnet test WpfDesign.sln --no-build --verbosity normal -c ${{ matrix.configuration }}
- name: Pack
if: matrix.configuration == 'release'
run: .\nuget\pack.ps1
- name: Upload NuGet
if: matrix.configuration == 'release'
uses: actions/upload-artifact@v4
with:
name: NuGet Packages (${{ matrix.configuration }})
path: '**/*.nupkg'
if-no-files-found: error