mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-08 04:30:26 +02:00
Fix CI: use dotnet msbuild -restore to properly disable analyzers
The separate restore + build steps caused StyleCop analyzers to be restored unconditionally, then EnableAnalyzers=false had no effect since packages were already resolved. Using dotnet msbuild -restore (matching upstream build.sh) passes the property during both restore and build phases.
This commit is contained in:
parent
1785cc0827
commit
3f9aca3fe0
1 changed files with 4 additions and 12 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
|
@ -46,14 +46,10 @@ jobs:
|
|||
with:
|
||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore src/Prowlarr.sln
|
||||
|
||||
- name: Build
|
||||
run: >-
|
||||
dotnet build src/Prowlarr.sln
|
||||
--no-restore
|
||||
-c Release
|
||||
dotnet msbuild -restore src/Prowlarr.sln
|
||||
-p:Configuration=Release
|
||||
-p:Platform=${{ matrix.platform }}
|
||||
-p:EnableAnalyzers=false
|
||||
|
||||
|
|
@ -85,14 +81,10 @@ jobs:
|
|||
with:
|
||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore src/Prowlarr.sln
|
||||
|
||||
- name: Build
|
||||
run: >-
|
||||
dotnet build src/Prowlarr.sln
|
||||
--no-restore
|
||||
-c Release
|
||||
dotnet msbuild -restore src/Prowlarr.sln
|
||||
-p:Configuration=Release
|
||||
-p:Platform=${{ matrix.platform }}
|
||||
-p:EnableAnalyzers=false
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue