Skip to content

Commit 27acce3

Browse files
authored
housekeeping: Clean NuGet Locals before CI Build (#190)
* housekeeping: Clean NuGet Locals before CI Build * Run samples CI when GitHub Actions config changes * Fix step order * Add missing properties * Try without maxcpucount
1 parent 2f52438 commit 27acce3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-samples.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches: [ main ]
66
paths:
77
- 'samples/**'
8+
- '.github/**'
89
pull_request:
910
branches: [ main ]
1011
paths:
1112
- 'samples/**'
13+
- '.github/**'
1214

1315
jobs:
1416
build-samples:
@@ -40,8 +42,15 @@ jobs:
4042
- name: Setup MSBuild.exe
4143
uses: microsoft/[email protected]
4244

45+
# The workaround from https://github.com/actions/setup-dotnet/issues/155#issuecomment-748452076
46+
- name: Clean
47+
run: msbuild LoginApp.sln /t:clean /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=$env:Configuration && dotnet nuget locals all --clear
48+
working-directory: samples
49+
env:
50+
Configuration: ${{ matrix.configuration }}
51+
4352
- name: Restore/Build the sample
4453
run: msbuild LoginApp.sln /t:restore,build /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=$env:Configuration
4554
working-directory: samples
4655
env:
47-
Configuration: ${{ matrix.configuration }}
56+
Configuration: ${{ matrix.configuration }}

0 commit comments

Comments
 (0)