Skip to content

Commit 15118ab

Browse files
authored
Merge pull request #602 from CommunityToolkit/fix/package/mutually-exclusive-winui
Exclude uwp/wasdk MultiTarget in WinUI 2/3 packages.
2 parents 62364fa + a1999be commit 15118ab

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,19 @@ jobs:
259259
with:
260260
vs-version: '[17.9,)'
261261

262+
- name: Define excluded MultiTargets (WinUI 2)
263+
if: ${{ matrix.winui == '2' }}
264+
run: |
265+
echo "EXCLUDED_MULTITARGETS=wasdk" >> $env:GITHUB_ENV
266+
267+
- name: Define excluded MultiTargets (WinUI 3)
268+
if: ${{ matrix.winui == '3' }}
269+
run: |
270+
echo "EXCLUDED_MULTITARGETS=uwp" >> $env:GITHUB_ENV
271+
262272
# Build and pack component nupkg
263273
- name: Build and pack component packages
264-
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
274+
run: ./tooling/Build-Toolkit-Components.ps1 -MultiTargets all -ExcludeMultiTargets ${{ env.EXCLUDED_MULTITARGETS }} -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
265275

266276
- name: Validate package names
267277
if: ${{ env.VERSION_PROPERTY != '' }}

0 commit comments

Comments
 (0)