Skip to content

Commit

Permalink
CI: Save artifacts on Azure pipelines for builds, including PRs
Browse files Browse the repository at this point in the history
This makes testing PRs easier/more convient for those who want to check
out various platforms.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz authored and pcercuei committed Mar 3, 2022
1 parent 2c338f7 commit 7385e72
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ stages:
make package
displayName: 'Build'
- task: CopyFiles@2
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/build/'
contents: '$(Agent.BuildDirectory)/s/build/?(*.deb|*.gz|*.rpm)'
Expand Down Expand Up @@ -169,7 +168,6 @@ stages:
filePath: .\CI\generate_exe.ps1
displayName: 'Generate libiio-setup.exe'
- task: PublishPipelineArtifact@1
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'Libiio-Setup-Exe'
Expand Down Expand Up @@ -271,7 +269,6 @@ stages:
sudo docker run --rm -t --privileged -e ARTIFACTNAME=$(artifactName) -v "$(Agent.BuildDirectory)/s":"/ci" -v "/usr/bin/qemu-$(arch)-static":"/usr/bin/qemu-$(arch)-static" "$(image)" /bin/bash -c "cd /ci/ && chmod +x ./CI/azure/$(build_script) && ./CI/azure/$(build_script)"
displayName: 'Build'
- task: CopyFiles@2
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/build/'
contents: '$(Agent.BuildDirectory)/s/build/?(*.deb|*.gz)'
Expand Down

0 comments on commit 7385e72

Please sign in to comment.