| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,7 +136,8 @@ jobs: | |||
| 136 | 136 | 'rpm-fxdependent' { 'Signed-fxdependent-linux-x64', 'powershell*.rpm' } | |
| 137 | 137 | 'rpm-fxdependent-arm64' { 'Signed-fxdependent-linux-arm64', 'powershell*.rpm' } | |
| 138 | 138 | 'rpm' { 'Signed-linux-x64', 'powershell*.rpm' } | |
| 139 | - 'min-size' { 'Signed-linux-x64', 'powershell*.tar.gz' } | ||
| 139 | + 'min-size-x64' { 'Signed-linux-x64', 'powershell*.tar.gz' } | ||
| 140 | + 'min-size-arm64' { 'Signed-linux-arm64', 'powershell*.tar.gz' } | ||
| 140 | 141 | } | |
| 141 | 142 | ||
| 142 | 143 | $signedFilesPath = "$(Pipeline.Workspace)/CoOrdinatedBuildPipeline/${signedDrop}/${signedFolder}" | |
@@ -173,7 +174,7 @@ jobs: | |||
| 173 | 174 | ||
| 174 | 175 | Start-PSPackage -Type $packageType -ReleaseTag $(ReleaseTagVar) -PackageBinPath $signedFilesPath | |
| 175 | 176 | ||
| 176 | - if ($LTS) { | ||
| 177 | + if ($LTS -and ($packageType -like 'deb*' -or $packageType -like 'rpm*')) { | ||
| 177 | 178 | Write-Verbose -Message "LTS Release: $LTS" -Verbose | |
| 178 | 179 | Start-PSPackage -Type $packageType -ReleaseTag $(ReleaseTagVar) -PackageBinPath $signedFilesPath -LTS | |
| 179 | 180 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,16 +63,16 @@ jobs: | |||
| 63 | 63 | - download: CoOrdinatedBuildPipeline | |
| 64 | 64 | artifact: drop_windows_build_windows_${{ parameters.runtime }}_release | |
| 65 | 65 | displayName: Download signed artifacts | |
| 66 | - condition: ${{ ne(parameters.runtime, 'minSize') }} | ||
| 66 | + condition: ${{ not(contains(parameters.runtime, 'minsize')) }} | ||
| 67 | 67 | ||
| 68 | 68 | - download: CoOrdinatedBuildPipeline | |
| 69 | - artifact: drop_windows_build_windows_x64_${{ parameters.runtime }} | ||
| 69 | + artifact: drop_windows_build_windows_${{ parameters.runtime }} | ||
| 70 | 70 | displayName: Download minsize signed artifacts | |
| 71 | - condition: ${{ eq(parameters.runtime, 'minSize') }} | ||
| 71 | + condition: ${{ contains(parameters.runtime, 'minsize') }} | ||
| 72 | 72 | ||
| 73 | 73 | - pwsh: | | |
| 74 | 74 | Write-Verbose -Verbose "signed artifacts" | |
| 75 | - Get-ChildItem "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_${{ parameters.runtime }}_release" -Recurse | ||
| 75 | + Get-ChildItem "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline" -Recurse | ||
| 76 | 76 | displayName: 'Capture Downloaded Artifacts' | |
| 77 | 77 | # Diagnostics is not critical it passes every time it runs | |
| 78 | 78 | continueOnError: true | |
@@ -91,7 +91,8 @@ jobs: | |||
| 91 | 91 | 'arm64' { 'Signed-win-arm64' } | |
| 92 | 92 | 'fxdependent' { 'Signed-fxdependent' } | |
| 93 | 93 | 'fxdependentWinDesktop' { 'Signed-fxdependent-win-desktop' } | |
| 94 | - 'minsize' { 'Signed-win7-x64' } | ||
| 94 | + 'x64_minsize' { 'Signed-win7-x64' } | ||
| 95 | + 'arm64_minsize' { 'Signed-win-arm64' } | ||
| 95 | 96 | } | |
| 96 | 97 | ||
| 97 | 98 | Write-Verbose -Message "Init..." -Verbose | |
@@ -104,9 +105,9 @@ jobs: | |||
| 104 | 105 | ||
| 105 | 106 | Find-Dotnet | |
| 106 | 107 | ||
| 107 | - $signedFilesPath, $psoptionsFilePath = if ($env:RUNTIME -eq 'minsize') { | ||
| 108 | - "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_x64_${runtime}\$signedFolder" | ||
| 109 | - "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_x64_${runtime}\psoptions\psoptions.json" | ||
| 108 | + $signedFilesPath, $psoptionsFilePath = if ($runtime.Contains('minsize')) { | ||
| 109 | + "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_${runtime}\$signedFolder" | ||
| 110 | + "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_${runtime}\psoptions\psoptions.json" | ||
| 110 | 111 | } | |
| 111 | 112 | else { | |
| 112 | 113 | "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_${runtime}_release\$signedFolder" | |
@@ -157,7 +158,8 @@ jobs: | |||
| 157 | 158 | 'arm64' { 'win-arm64' } | |
| 158 | 159 | 'fxdependent' { 'win7-x64' } | |
| 159 | 160 | 'fxdependentWinDesktop' { 'win7-x64' } | |
| 160 | - 'minsize' { 'win7-x64' } | ||
| 161 | + 'x64_minsize' { 'win7-x64' } | ||
| 162 | + 'arm64_minsize' { 'win-arm64' } | ||
| 161 | 163 | } | |
| 162 | 164 | ||
| 163 | 165 | $packageTypes = switch ($runtime) { | |
@@ -166,7 +168,8 @@ jobs: | |||
| 166 | 168 | 'arm64' { @('zip', 'msix') } | |
| 167 | 169 | 'fxdependent' { 'fxdependent' } | |
| 168 | 170 | 'fxdependentWinDesktop' { 'fxdependent-win-desktop' } | |
| 169 | - 'minsize' { 'min-size' } | ||
| 171 | + 'x64_minsize' { 'min-size-x64' } | ||
| 172 | + 'arm64_minsize' { 'min-size-arm64' } | ||
| 170 | 173 | } | |
| 171 | 174 | ||
| 172 | 175 | if (-not (Test-Path $(ob_outputDirectory))) { | |
@@ -198,14 +201,15 @@ jobs: | |||
| 198 | 201 | 'arm64' { @('zip', 'msix') } | |
| 199 | 202 | 'fxdependent' { 'fxdependent' } | |
| 200 | 203 | 'fxdependentWinDesktop' { 'fxdependent-win-desktop' } | |
| 201 | - 'minsize' { 'min-size' } | ||
| 204 | + 'x64_minsize' { 'min-size-x64' } | ||
| 205 | + 'arm64_minsize' { 'min-size-arm64' } | ||
| 202 | 206 | } | |
| 203 | 207 | ||
| 204 | 208 | if (-not (Test-Path $(ob_outputDirectory))) { | |
| 205 | 209 | New-Item -ItemType Directory -Path $(ob_outputDirectory) -Force | |
| 206 | 210 | } | |
| 207 | 211 | ||
| 208 | - if ($packageTypes -contains 'zip' -or $packageTypes -contains 'fxdependent' -or $packageTypes -contains 'min-size' -or $packageTypes -contains 'fxdependent-win-desktop') { | ||
| 212 | + if ($packageTypes -contains 'zip' -or $packageTypes -like 'fxdependent*' -or $packageTypes -like 'min-size*') { | ||
| 209 | 213 | $zipPkgNameFilter = "powershell-*.zip" | |
| 210 | 214 | $zipPkgPath = Get-ChildItem -Path $(Pipeline.Workspace) -Filter $zipPkgNameFilter -Recurse -File | Select-Object -ExpandProperty FullName | |
| 211 | 215 | Write-Verbose -Verbose "unsigned zipPkgPath: $zipPkgPath" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,14 +88,15 @@ jobs: | |||
| 88 | 88 | 'arm64' { @('zip', 'msix') } | |
| 89 | 89 | 'fxdependent' { 'fxdependent' } | |
| 90 | 90 | 'fxdependentWinDesktop' { 'fxdependent-win-desktop' } | |
| 91 | - 'minsize' { 'min-size' } | ||
| 91 | + 'x64_minsize' { 'min-size-x64' } | ||
| 92 | + 'arm64_minsize' { 'min-size-arm64' } | ||
| 92 | 93 | } | |
| 93 | 94 | ||
| 94 | 95 | if (-not (Test-Path $(ob_outputDirectory))) { | |
| 95 | 96 | New-Item -ItemType Directory -Path $(ob_outputDirectory) -Force | |
| 96 | 97 | } | |
| 97 | 98 | ||
| 98 | - if ($packageTypes -contains 'zip' -or $packageTypes -contains 'fxdependent' -or $packageTypes -contains 'min-size' -or $packageTypes -contains 'fxdependent-win-desktop') { | ||
| 99 | + if ($packageTypes -contains 'zip' -or $packageTypes -like 'fxdependent*' -or $packageTypes -like 'min-size*') { | ||
| 99 | 100 | $zipPkgNameFilter = "powershell-*.zip" | |
| 100 | 101 | $zipPkgPath = Get-ChildItem -Path $(Pipeline.Workspace) -Filter $zipPkgNameFilter -Recurse -File | Select-Object -ExpandProperty FullName | |
| 101 | 102 | Write-Verbose -Verbose "signed zipPkgPath: $zipPkgPath" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,6 +81,12 @@ stages: | |||
| 81 | 81 | JobName: 'linux_x64_minSize' | |
| 82 | 82 | BuildConfiguration: 'minSize' | |
| 83 | 83 | ||
| 84 | + - template: /.pipelines/templates/linux.yml@self | ||
| 85 | + parameters: | ||
| 86 | + Runtime: 'linux-arm64' | ||
| 87 | + JobName: 'linux_arm64_minSize' | ||
| 88 | + BuildConfiguration: 'minSize' | ||
| 89 | + | ||
| 84 | 90 | - template: /.pipelines/templates/linux.yml@self | |
| 85 | 91 | parameters: | |
| 86 | 92 | Runtime: 'linux-arm' | |
@@ -134,6 +140,11 @@ stages: | |||
| 134 | 140 | Architecture: x64 | |
| 135 | 141 | BuildConfiguration: minSize | |
| 136 | 142 | JobName: build_windows_x64_minSize_release | |
| 143 | + - template: /.pipelines/templates/windows-hosted-build.yml@self | ||
| 144 | + parameters: | ||
| 145 | + Architecture: arm64 | ||
| 146 | + BuildConfiguration: minSize | ||
| 147 | + JobName: build_windows_arm64_minSize_release | ||
| 137 | 148 | - template: /.pipelines/templates/windows-hosted-build.yml@self | |
| 138 | 149 | parameters: | |
| 139 | 150 | Architecture: x86 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,11 @@ stages: | |||
| 46 | 46 | ||
| 47 | 47 | - template: /.pipelines/templates/packaging/windows/package.yml@self | |
| 48 | 48 | parameters: | |
| 49 | - runtime: minsize | ||
| 49 | + runtime: x64_minsize | ||
| 50 | + | ||
| 51 | + - template: /.pipelines/templates/packaging/windows/package.yml@self | ||
| 52 | + parameters: | ||
| 53 | + runtime: arm64_minsize | ||
| 50 | 54 | ||
| 51 | 55 | - stage: windows_package_sign | |
| 52 | 56 | displayName: 'Win Pkg Sign' | |
@@ -74,7 +78,11 @@ stages: | |||
| 74 | 78 | ||
| 75 | 79 | - template: /.pipelines/templates/packaging/windows/sign.yml@self | |
| 76 | 80 | parameters: | |
| 77 | - runtime: minsize | ||
| 81 | + runtime: x64_minsize | ||
| 82 | + | ||
| 83 | + - template: /.pipelines/templates/packaging/windows/sign.yml@self | ||
| 84 | + parameters: | ||
| 85 | + runtime: arm64_minsize | ||
| 78 | 86 | ||
| 79 | 87 | - stage: linux_package | |
| 80 | 88 | displayName: 'Linux Pkg+Sign' | |
@@ -161,8 +169,15 @@ stages: | |||
| 161 | 169 | parameters: | |
| 162 | 170 | unsignedDrop: 'drop_linux_build_linux_x64_minSize' | |
| 163 | 171 | signedDrop: 'drop_linux_sign_linux_x64_minSize' | |
| 164 | - packageType: min-size | ||
| 165 | - jobName: minSize | ||
| 172 | + packageType: min-size-x64 | ||
| 173 | + jobName: minSize_x64 | ||
| 174 | + | ||
| 175 | + - template: /.pipelines/templates/linux-package-build.yml@self | ||
| 176 | + parameters: | ||
| 177 | + unsignedDrop: 'drop_linux_build_linux_arm64_minSize' | ||
| 178 | + signedDrop: 'drop_linux_sign_linux_arm64_minSize' | ||
| 179 | + packageType: min-size-arm64 | ||
| 180 | + jobName: minSize_arm64 | ||
| 166 | 181 | ||
| 167 | 182 | - stage: nupkg | |
| 168 | 183 | displayName: 'NuGet Pkg+Sign' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,6 +56,14 @@ jobs: | |||
| 56 | 56 | targetPath: '$(Build.ArtifactStagingDirectory)/downloads' | |
| 57 | 57 | displayName: Download deb package | |
| 58 | 58 | ||
| 59 | + - task: DownloadPipelineArtifact@2 | ||
| 60 | + inputs: | ||
| 61 | + buildType: 'current' | ||
| 62 | + artifact: drop_linux_package_deb_arm64 | ||
| 63 | + itemPattern: '**/*.deb' | ||
| 64 | + targetPath: '$(Build.ArtifactStagingDirectory)/downloads' | ||
| 65 | + displayName: Download deb arm64 package | ||
| 66 | + | ||
| 59 | 67 | - task: DownloadPipelineArtifact@2 | |
| 60 | 68 | inputs: | |
| 61 | 69 | buildType: 'current' | |
@@ -83,10 +91,18 @@ jobs: | |||
| 83 | 91 | - task: DownloadPipelineArtifact@2 | |
| 84 | 92 | inputs: | |
| 85 | 93 | buildType: 'current' | |
| 86 | - artifact: drop_linux_package_minSize | ||
| 94 | + artifact: drop_linux_package_minSize_x64 | ||
| 95 | + itemPattern: '**/*.tar.gz' | ||
| 96 | + targetPath: '$(Build.ArtifactStagingDirectory)/downloads' | ||
| 97 | + displayName: Download linux minSize x64 package | ||
| 98 | + | ||
| 99 | + - task: DownloadPipelineArtifact@2 | ||
| 100 | + inputs: | ||
| 101 | + buildType: 'current' | ||
| 102 | + artifact: drop_linux_package_minSize_arm64 | ||
| 87 | 103 | itemPattern: '**/*.tar.gz' | |
| 88 | 104 | targetPath: '$(Build.ArtifactStagingDirectory)/downloads' | |
| 89 | - displayName: Download linux minSize package | ||
| 105 | + displayName: Download linux minSize arm64 package | ||
| 90 | 106 | ||
| 91 | 107 | - task: DownloadPipelineArtifact@2 | |
| 92 | 108 | inputs: | |
@@ -173,10 +189,18 @@ jobs: | |||
| 173 | 189 | - task: DownloadPipelineArtifact@2 | |
| 174 | 190 | inputs: | |
| 175 | 191 | buildType: 'current' | |
| 176 | - artifact: drop_windows_package_package_win_minsize | ||
| 192 | + artifact: drop_windows_package_package_win_x64_minsize | ||
| 193 | + itemPattern: '**/*.zip' | ||
| 194 | + targetPath: '$(Build.ArtifactStagingDirectory)/downloads' | ||
| 195 | + displayName: Download windows x64 minsize packages | ||
| 196 | + | ||
| 197 | + - task: DownloadPipelineArtifact@2 | ||
| 198 | + inputs: | ||
| 199 | + buildType: 'current' | ||
| 200 | + artifact: drop_windows_package_package_win_arm64_minsize | ||
| 177 | 201 | itemPattern: '**/*.zip' | |
| 178 | 202 | targetPath: '$(Build.ArtifactStagingDirectory)/downloads' | |
| 179 | - displayName: Download windows minsize packages | ||
| 203 | + displayName: Download windows arm64 minsize packages | ||
| 180 | 204 | ||
| 181 | 205 | - task: DownloadPipelineArtifact@2 | |
| 182 | 206 | inputs: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -463,8 +463,8 @@ function Start-PSBuild { | |||
| 463 | 463 | } | |
| 464 | 464 | ||
| 465 | 465 | if ($ForMinimalSize) { | |
| 466 | - if ($Runtime -and "linux-x64", "win7-x64", "osx-x64" -notcontains $Runtime) { | ||
| 467 | - throw "Build for the minimal size is enabled only for following runtimes: 'linux-x64', 'win7-x64', 'osx-x64'" | ||
| 466 | + if ($Runtime -and "linux-x64", "linux-arm64", "win7-x64", "win-arm64", "osx-x64", "osx-arm64" -notcontains $Runtime) { | ||
| 467 | + throw "Build for the minimal size is enabled only for following runtimes: 'linux-x64', 'linux-arm64', 'win7-x64', 'win-arm64', 'osx-x64', 'osx-arm64'" | ||
| 468 | 468 | } | |
| 469 | 469 | } | |
| 470 | 470 | ||
@@ -3192,7 +3192,7 @@ function Start-TypeGen | |||
| 3192 | 3192 | ||
| 3193 | 3193 | Push-Location "$PSScriptRoot/src/TypeCatalogGen" | |
| 3194 | 3194 | try { | |
| 3195 | - Start-NativeExecution { dotnet run ../System.Management.Automation/CoreCLR/CorePsTypeCatalog.cs $IncFileName } | ||
| 3195 | + Start-NativeExecution { dotnet run -- ../System.Management.Automation/CoreCLR/CorePsTypeCatalog.cs $IncFileName } | ||
| 3196 | 3196 | } finally { | |
| 3197 | 3197 | Pop-Location | |
| 3198 | 3198 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,6 @@ | |||
| 8 | 8 | CmdletsToExport = @() | |
| 9 | 9 | FunctionsToExport = @( | |
| 10 | 10 | 'Expand-PSSignedBuild' | |
| 11 | - 'Invoke-AzDevOpsLinuxPackageBuild' | ||
| 12 | - 'Invoke-AzDevOpsLinuxPackageCreation' | ||
| 13 | 11 | 'New-DotnetSdkContainerFxdPackage' | |
| 14 | 12 | 'Start-PrepForGlobalToolNupkg' | |
| 15 | 13 | 'New-GlobalToolNupkgSource' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments