From 07779ee84973f2f63a1f2ced6377463b1c01baaf Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Mon, 30 Jan 2023 15:00:49 -0800 Subject: Build scripts update (#844) --------- Co-authored-by: Jakob Lichtenberg (170957) --- .github/scripts/Build-ChangedProjects.ps1 | 34 ------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/scripts/Build-ChangedProjects.ps1 (limited to '.github/scripts/Build-ChangedProjects.ps1') diff --git a/.github/scripts/Build-ChangedProjects.ps1 b/.github/scripts/Build-ChangedProjects.ps1 deleted file mode 100644 index a13e3501..00000000 --- a/.github/scripts/Build-ChangedProjects.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -param ( - [array]$ChangedFiles -) - -$root = (Get-Location).Path - -# To include in CI gate -$projectSet = @{} -foreach ($file in $ChangedFiles) -{ - if (-not (Test-Path $file)) { - Write-Output "`u{2754} Changed file $file cannot be found" - continue - } - $dir = (Get-Item $file).DirectoryName - while ((-not ($slnItems = (Get-ChildItem $dir '*.sln'))) -and ($dir -ne $root)) - { - $dir = (Get-Item $dir).Parent.FullName - } - if ($dir -eq $root) - { - Write-Output "`u{2754} Changed file $file does not match a project." - continue - } - $projectName = $dir.Replace($root, '').Trim('\').Replace('\', '.').ToLower() - Write-Output "`u{1F50E} Found project [$projectName] at $dir from changed file $file" - if (-not ($projectSet.ContainsKey($projectName))) - { - $projectSet[$projectName] = $dir - } -} - -.\Build-ProjectSet -ProjectSet $projectSet - -- cgit v1.3.1