Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
permissions:
contents: write
id-token: write
packages: write
strategy:
fail-fast: false
matrix:
Expand All @@ -22,21 +26,28 @@ jobs:
with:
fetch-depth: 0

- name: Install .NET SDK 6.0.x
- name: Install .NET SDK 8.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'

- name: Install .NET SDK 8.0.x
- name: Install .NET SDK 9.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: Install .NET SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json

- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
if: matrix.os == 'windows-latest' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
with:
user: ${{secrets.NUGET_USER}}

- name: Run Cake script
uses: cake-build/cake-action@v3
env:
Expand All @@ -45,7 +56,7 @@ jobs:
GH_PACKAGES_NUGET_SOURCE: ${{ secrets.GH_PACKAGES_NUGET_SOURCE }}
GH_PACKAGES_NUGET_APIKEY: ${{ secrets.GH_PACKAGES_NUGET_APIKEY }}
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }}
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
NUGET_APIKEY: ${{steps.login.outputs.NUGET_API_KEY}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cake-version: tool-manifest
Expand Down
3 changes: 2 additions & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"sdk": {
"version": "9.0.306"
"rollForward": "latestFeature",
"version": "10.0.100-rc.2.25502.107"
}
}
2 changes: 1 addition & 1 deletion src/DPI/Commands/NuGet/NuGetAnalyzeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class NuGetAnalyzeCommand<TSettings> : NuGetCommand<TSettings> where TSet

private NuGetParsers NuGetParsers { get; }

public override async Task<int> ExecuteAsync(CommandContext context, TSettings settings)
public override async Task<int> ExecuteAsync(CommandContext context, TSettings settings, CancellationToken cancellationToken)
{
FilePathCollection filePaths;
using (settings.Logger.BeginScope("GetFiles"))
Expand Down
4 changes: 2 additions & 2 deletions src/DPI/DPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<Nullable>enable</Nullable>
<PackageIcon>icon/dpi.png</PackageIcon>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Devlead.Console" Version="2025.10.15.396" />
<PackageReference Include="Devlead.Console" Version="2025.11.4.431" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
<PackageReference Include="Cake.Core" Version="5.1.0" />
<PackageReference Include="Cake.Common" Version="5.1.0" />
Expand Down