Skip to content

Commit

Permalink
Merge pull request #22 from Davilarek/fix-cli-net-framework
Browse files Browse the repository at this point in the history
Fix Github Actions build for NET Framework
  • Loading branch information
n1d3v authored May 21, 2024
2 parents aa88752 + 5f7cbdf commit 08be555
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: .NET Framework

on:
push:
branches: [ "dev" ]
branches: [ "dev", "fix-cli-net-framework" ]
pull_request:
branches: [ "dev" ]

jobs:
build:

runs-on: windows-latest

runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 4.0
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1
- name: Restore Packages
run: nuget restore Naticord.sln
- name: Build
run: 'msbuild Naticord.sln -t:rebuild -property:Configuration=Release'
- name: Test
run: dotnet test --no-build --verbosity normal

0 comments on commit 08be555

Please sign in to comment.