File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,15 @@ jobs:
2929 - name : Checkout
3030 uses : actions/checkout@v4
3131
32- - name : Setup .NET 9 SDK
32+ - name : Setup .NET 10 SDK
3333 uses : actions/setup-dotnet@v4
3434 with :
35- dotnet-version : 9.0.x
35+ dotnet-version : 10.0.x
36+ cache : true
37+ cache-dependency-path : |
38+ **/*.sln
39+ **/*.slnx
40+ **/*.csproj
3641
3742 - name : Initialize CodeQL
3843 uses : github/codeql-action/init@v3
4449
4550 - name : Manual build fallback
4651 if : failure()
52+ shell : pwsh
4753 run : |
48- dotnet restore
49- dotnet build --configuration Release --no-restore
54+ $projects = Get-ChildItem -Recurse -Filter *.csproj -File
55+ if (-not $projects) { Write-Host "No csproj files found"; exit 1 }
56+ foreach ($p in $projects) {
57+ echo "Restoring $($p.FullName)"
58+ dotnet restore --nologo "$($p.FullName)"
59+ }
60+ foreach ($p in $projects) {
61+ echo "Building $($p.FullName)"
62+ dotnet build "$($p.FullName)" --configuration Release --no-restore /p:ContinuousIntegrationBuild=true
63+ }
5064
5165 - name : Perform CodeQL Analysis
5266 uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments