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
5 changes: 3 additions & 2 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true

# Set up a VS build environment.
- name: Setup Environment Variables
Expand Down Expand Up @@ -64,9 +65,9 @@ jobs:
run: .\build\Install-WindowsSdkISO.ps1 18362
shell: pwsh

# Run the build.
# Run the build. Pushes to main and rel/* also build the full multi-arch sample app bundles.
- name: Build
run: .\build.ps1 --target=Package
run: .\build.ps1 --target=Package ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/rel/')) && '--fullAppBuild=true' || '' }}
shell: pwsh
working-directory: .\build

Expand Down
7 changes: 7 additions & 0 deletions build/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ using System.Text.RegularExpressions;

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
// Builds the sample app bundles for every architecture. Slow; not needed for the NuGet packages.
var fullAppBuild = Argument("fullAppBuild", false);

//////////////////////////////////////////////////////////////////////
// VERSIONS OF TOOLS TO USE
Expand Down Expand Up @@ -61,6 +63,10 @@ void MSBuildSolution(
{
settings = settings.WithProperty(property.Name, property.Value);
}
if (!fullAppBuild)
{
settings = settings.WithProperty("AppxBundle", "Never");
}
return settings;
}

Expand Down Expand Up @@ -94,6 +100,7 @@ static bool IsExcludedDirectory(FilePath path)

return
segments.Contains("bin") ||
segments.Contains("external") ||
segments.Contains("internal") ||
segments.Contains("obj");
}
Expand Down
Loading