@@ -282,3 +282,55 @@ extends:
282282 --runtime="osx-arm64" \
283283 --package-path="$(Build.ArtifactStagingDirectory)/pkg" \
284284 --output="$(Build.ArtifactStagingDirectory)/installers/gcm-osx-arm64-$(VERSION).pkg"
285+
286+ - job : linux_x64_build
287+ displayName : ' Linux (x64)'
288+ pool :
289+ name : GitClient-1ESHostedPool-intel-pc
290+ image : ubuntu-x86_64-ado1es
291+ os : linux
292+ templateContext :
293+ outputs :
294+ - output : pipelineArtifact
295+ targetPath : ' $(Build.ArtifactStagingDirectory)/payload'
296+ artifactName : ' linux-x64_payload'
297+ - output : pipelineArtifact
298+ targetPath : ' $(Build.ArtifactStagingDirectory)/symbols'
299+ artifactName : ' linux-x64_symbols'
300+ - output : pipelineArtifact
301+ targetPath : ' $(Build.ArtifactStagingDirectory)/installers'
302+ artifactName : ' linux-x64_installers'
303+ steps :
304+ - checkout : self
305+ - task : Bash@3
306+ displayName : ' Get version'
307+ inputs :
308+ targetType : inline
309+ script : |
310+ echo "##vso[task.setvariable variable=VERSION]$(cat ./VERSION | sed -E 's/.[0-9]+$//')"
311+ - task : UseDotNet@2
312+ displayName : ' Use .NET 8 SDK'
313+ inputs :
314+ packageType : sdk
315+ version : ' 8.x'
316+ - task : Bash@3
317+ displayName : ' Build payload'
318+ inputs :
319+ targetType : filePath
320+ filePath : ' ./src/linux/Packaging.Linux/layout.sh'
321+ arguments : |
322+ --runtime="linux-x64" \
323+ --configuration="Release" \
324+ --output="$(Build.ArtifactStagingDirectory)/payload" \
325+ --symbol-output="$(Build.ArtifactStagingDirectory)/symbols"
326+ - task : Bash@3
327+ displayName : ' Build packages'
328+ inputs :
329+ targetType : filePath
330+ filePath : ' ./src/linux/Packaging.Linux/pack.sh'
331+ arguments : |
332+ --version="$(VERSION)" \
333+ --runtime="linux-x64" \
334+ --payload="$(Build.ArtifactStagingDirectory)/payload" \
335+ --symbols="$(Build.ArtifactStagingDirectory)/symbols" \
336+ --output="$(Build.ArtifactStagingDirectory)/packages"
0 commit comments