diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abddfcf5b..1b7e80a1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 # Restore Tools from Manifest list in the Repository - name: Restore dotnet tools @@ -132,10 +133,15 @@ jobs: with: vs-version: '[17.9,)' + - name: Get changed components + run: | + $components = ./tooling/Get-Changed-Components.ps1 + echo "CHANGED_COMPONENTS_LIST=$components" >> $env:GITHUB_ENV + # Generate full solution with all projects (sample gallery heads, components, tests) - name: Generate solution with ${{ matrix.multitarget }} gallery, components and tests working-directory: ./ - run: powershell -version 5.1 -command "./tooling/GenerateAllSolution.ps1 -MultiTargets ${{ matrix.multitarget }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }} -WinUIMajorVersion ${{ matrix.winui }}" -ErrorAction Stop + run: powershell -version 5.1 -command "./tooling/GenerateAllSolution.ps1 -MultiTargets ${{ matrix.multitarget }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }} -Components ${{ env.CHANGED_COMPONENTS_LIST }} -WinUIMajorVersion ${{ matrix.winui }}" -ErrorAction Stop # Build solution - name: MSBuild (With diagnostics) @@ -233,6 +239,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 - name: Format Date/Time of Commit for Package Version run: | @@ -257,9 +264,15 @@ jobs: with: vs-version: '[17.9,)' + # Get changed components + - name: Get changed components + run: | + $components = ./tooling/Get-Changed-Components.ps1 + echo "CHANGED_COMPONENTS_LIST=$components" >> $env:GITHUB_ENV + # Build and pack component nupkg - name: Build and pack component packages - run: ./tooling/Build-Toolkit-Components.ps1 -MultiTargets all -WinUIMajorVersion ${{ matrix.winui }} -DateForVersion ${{ env.VERSION_DATE }} ${{ env.VERSION_PROPERTY != '' && format('-PreviewVersion "{0}"', env.VERSION_PROPERTY) || '' }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '-EnableBinlogs' || '' }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '-Verbose' || '' }} -BinlogOutput ./ -NupkgOutput ./ -Release + run: ./tooling/Build-Toolkit-Components.ps1 -MultiTargets all -Components ${{ env.CHANGED_COMPONENTS_LIST }} -WinUIMajorVersion ${{ matrix.winui }} -DateForVersion ${{ env.VERSION_DATE }} ${{ env.VERSION_PROPERTY != '' && format('-PreviewVersion "{0}"', env.VERSION_PROPERTY) || '' }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '-EnableBinlogs' || '' }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '-Verbose' || '' }} -BinlogOutput ./ -NupkgOutput ./ -Release - name: Validate package names if: ${{ env.VERSION_PROPERTY != '' }} diff --git a/tooling b/tooling index e4506d4ae..d79432502 160000 --- a/tooling +++ b/tooling @@ -1 +1 @@ -Subproject commit e4506d4aeb1c3e458bfba05ef75d30b38ba7ed40 +Subproject commit d794325026c3bdebd0d92b232476af0c01b11cb3