From 36f3ace633f35d8e094e9e29fb9825400a2f6352 Mon Sep 17 00:00:00 2001 From: Davilarek Date: Tue, 21 May 2024 00:02:55 +0000 Subject: [PATCH 1/3] Attempt to fix cli build --- .github/workflows/dotnet.yml | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0d9e24e..fbd7faa 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,28 +1,34 @@ # 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" ] +runs-on: windows-2019 + jobs: build: + steps: + - 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 - runs-on: windows-latest - - 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 + - name: Build + run: msbuild Naticord.sln -t:rebuild -property:Configuration=Release + - name: Test run: dotnet test --no-build --verbosity normal From 86696439a0dbf45e01436b5e5613bbe1412ad05d Mon Sep 17 00:00:00 2001 From: Davilarek Date: Tue, 21 May 2024 00:09:44 +0000 Subject: [PATCH 2/3] Attempt 2 --- .github/workflows/dotnet.yml | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index fbd7faa..cc27bda 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -10,25 +10,19 @@ on: branches: [ "dev" ] runs-on: windows-2019 - jobs: build: - steps: - - 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 + steps: + - 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 From 5f7cbdfe40aea2361935bc04d99e739b0feee6c3 Mon Sep 17 00:00:00 2001 From: Davilarek Date: Tue, 21 May 2024 00:11:39 +0000 Subject: [PATCH 3/3] Attempt 3 --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index cc27bda..d0a28dc 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -9,9 +9,9 @@ on: pull_request: branches: [ "dev" ] -runs-on: windows-2019 jobs: build: + runs-on: windows-2019 steps: - uses: actions/checkout@v2 - name: Setup MSBuild