Skip to content

Commit e1219e4

Browse files
paulirwinclaudeCopilot
authored
Fix NuGet pack CI step: build in Release mode and exclude Benchmarks (#46)
## Summary - Remove `--no-build` flag from pack command so it builds in Release mode - Exclude Benchmarks project from NuGet packing by setting `IsPackable=false` Fixes the CI failure from the previous NuGet pack PR. ## Changes - Updated `.github/workflows/dotnet.yml` to use `dotnet pack -c Release` instead of `dotnet pack --no-build` - Added `<IsPackable>false</IsPackable>` to Benchmarks project file ## Test plan - [ ] Verify the pack step now builds in Release mode - [ ] Verify Benchmarks project is excluded from NuGet packages - [ ] Verify CI passes on a subsequent build 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent d388485 commit e1219e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
- name: Restore dependencies
2727
run: dotnet restore
2828
- name: Build
29-
run: dotnet build --no-restore
29+
run: dotnet build -c Release --no-restore
3030
- name: Test
31-
run: dotnet test --no-build --verbosity normal
31+
run: dotnet test -c Release --no-build --verbosity normal
3232
- name: Pack NuGet packages
3333
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest'
34-
run: dotnet pack --no-build --output nupkgs
34+
run: dotnet pack -c Release --no-build --output nupkgs
3535
- name: Upload NuGet packages
3636
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest'
3737
uses: actions/upload-artifact@v4

test/F23.StringSimilarity.Benchmarks/F23.StringSimilarity.Benchmarks.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8+
<IsPackable>false</IsPackable>
89
</PropertyGroup>
910

1011
<ItemGroup>

0 commit comments

Comments
 (0)