Skip to content

Commit

Permalink
Reduce checkout size of submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Feb 5, 2024
1 parent 04ff977 commit 173a5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native/winui/ANGLE.cake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void InitializeAngle(string branch, DirectoryPath ANGLE_PATH, DirectoryPath WINA
continue;

RunProcess("git", new ProcessSettings {
Arguments = $"submodule update --init --recursive {submodule}",
Arguments = $"submodule update --init --recursive --depth 1 --single-branch {submodule}",
WorkingDirectory = ANGLE_PATH.FullPath,
});
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/azure-templates-bootstrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
inputs:
artifactName: ${{ parameters.artifactName }}
pathToPublish: 'output'
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), ne(parameters.buildPipelineType, 'tests'), ne(variables['System.PullRequest.IsFork'], 'true'), or(and(eq(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))), parameters.runCompliance)) }}:
- task: ComponentGovernanceComponentDetection@0
displayName: Run component detection
condition: always()
Expand Down

0 comments on commit 173a5f0

Please sign in to comment.