@@ -236,13 +236,17 @@ extends:
236236 ob_restore_phase : true
237237 - pwsh : |
238238 apt update
239- apt -y install musl-tools
239+ apt -y install musl-tools rpm dpkg build-essential
240240 $header = "Bearer $(AzToken)"
241241 $env:CARGO_REGISTRIES_POWERSHELL_TOKEN = $header
242242 $env:CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER = 'cargo:token'
243243 ./build.ps1 -Release -Architecture x86_64-unknown-linux-musl
244244 ./build.ps1 -PackageType tgz -Architecture x86_64-unknown-linux-musl -Release
245+ ./build.ps1 -PackageType rpm -Architecture x86_64-unknown-linux-musl -Release
246+ ./build.ps1 -PackageType deb -Architecture x86_64-unknown-linux-musl -Release
245247 Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"
248+ Copy-Item ./bin/*.rpm "$(ob_outputDirectory)"
249+ Copy-Item ./bin/*.deb "$(ob_outputDirectory)"
246250 displayName: 'Build x86_64-unknown-linux-musl'
247251 condition: succeeded()
248252
@@ -289,6 +293,9 @@ extends:
289293 #apt -y install gcc-multilib
290294 apt -y install libssl-dev
291295 apt -y install pkg-config
296+ apt -y install rpm
297+ apt -y install dpkg
298+ apt -y install build-essential
292299 msrustup default stable-aarch64-unknown-linux-musl
293300 if ((openssl version -d) -match 'OPENSSLDIR: "(?<dir>.*?)"') {
294301 $env:OPENSSL_LIB_DIR = $matches['dir']
@@ -298,7 +305,11 @@ extends:
298305 $env:CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER = 'cargo:token'
299306 ./build.ps1 -Release -Architecture aarch64-unknown-linux-musl
300307 ./build.ps1 -PackageType tgz -Architecture aarch64-unknown-linux-musl -Release
308+ ./build.ps1 -PackageType rpm -Architecture aarch64-unknown-linux-musl -Release
309+ ./build.ps1 -PackageType deb -Architecture aarch64-unknown-linux-musl -Release
301310 Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"
311+ Copy-Item ./bin/*.rpm "$(ob_outputDirectory)"
312+ Copy-Item ./bin/*.deb "$(ob_outputDirectory)"
302313 displayName: 'Build aarch64-unknown-linux-musl'
303314 condition: succeeded()
304315
@@ -370,11 +381,17 @@ extends:
370381
371382 - download : current
372383 artifact : drop_BuildAndSign_BuildLinuxArm64Musl
373- patterns : ' *.tar.gz'
384+ patterns : |
385+ *.tar.gz
386+ *.rpm
387+ *.deb
374388
375389 - download : current
376390 artifact : drop_BuildAndSign_BuildLinuxMusl
377- patterns : ' *.tar.gz'
391+ patterns : |
392+ *.tar.gz
393+ *.rpm
394+ *.deb
378395
379396 - download : current
380397 artifact : release # # this includes artifacts for macOS
@@ -385,7 +402,7 @@ extends:
385402 patterns : ' *.msixbundle'
386403
387404 - pwsh : |
388- Get-ChildItem "$(Pipeline.Workspace)" -Recurse -Include '*.zip', '*.tar.gz', '*.msixbundle' | ForEach-Object {
405+ Get-ChildItem "$(Pipeline.Workspace)" -Recurse -Include '*.zip', '*.tar.gz', '*.msixbundle', '*.rpm', '*.deb' | ForEach-Object {
389406 Write-Host "Found artifact: $($_.FullName)"
390407 }
391408 displayName: List downloaded artifacts
@@ -398,7 +415,7 @@ extends:
398415
399416 Write-Verbose -Verbose "Starting to copy"
400417
401- Get-ChildItem "$(Pipeline.Workspace)" -Recurse -Include '*.zip', '*.tar.gz', '*.msixbundle' | ForEach-Object {
418+ Get-ChildItem "$(Pipeline.Workspace)" -Recurse -Include '*.zip', '*.tar.gz', '*.msixbundle', '*.rpm', '*.deb' | ForEach-Object {
402419 Copy-Item -Path $_.FullName -Destination $outputDir -Force -Verbose
403420 }
404421
@@ -448,7 +465,7 @@ extends:
448465 script : |
449466 Write-Verbose -Verbose "Release version: $(PackageVersion)"
450467
451- $artifacts = Get-ChildItem "$(Pipeline.Workspace)" -Recurse -Include '*.zip', '*.tar.gz', '*.msixbundle'
468+ $artifacts = Get-ChildItem "$(Pipeline.Workspace)" -Recurse -Include '*.zip', '*.tar.gz', '*.msixbundle', '*.rpm', '*.deb'
452469
453470 $artifacts | ForEach-Object {
454471 Write-Verbose -Verbose "Found artifact: $($_.FullName)"
@@ -489,6 +506,8 @@ extends:
489506 $(GitHubReleaseDirectory)\*.zip
490507 $(GitHubReleaseDirectory)\*.tar.gz
491508 $(GitHubReleaseDirectory)\*.msixbundle
509+ $(GitHubReleaseDirectory)\*.rpm
510+ $(GitHubReleaseDirectory)\*.deb
492511 addChangeLog : false
493512 tagSource : ' userSpecifiedTag'
494513 tag : ' $(GitHubReleaseVersion)'
0 commit comments