Fix build #116
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 6 & 7 & 8 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.423 | |
7.0.120 | |
8.0.302 | |
- name: Restore dependencies | |
run: dir "C:\Program Files\dotnet\\shared\Microsoft.WindowsDesktop.App\" | |
- name: Restore dependencies | |
run: dotnet restore WinFormsComInterop.Build.sln | |
- name: Build | |
run: dotnet build WinFormsComInterop.Build.sln --no-restore | |
- name: Test | |
run: dotnet test WinFormsComInterop.Build.sln --no-build --verbosity normal --framework net7.0 |