From cdca9f506e1c4a584fcc252757c5ee13826bb115 Mon Sep 17 00:00:00 2001 From: Raluca Groza Date: Thu, 10 Aug 2023 11:32:55 +0300 Subject: [PATCH] CI:add rpi build Signed-off-by: Raluca Groza --- azure-pipelines.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6054f47c8..1e58ed240 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,7 @@ variables: libiioPipelineId: 9 libad9361iioPipelineId: 10 - libad9166iioPipelineId: 11 + libad9166iioPipelineId: 41 trigger: - main @@ -89,6 +89,65 @@ jobs: - script: ./CI/travis/make_linux displayName: "Build" +- job: rpiBuilds + workspace: + clean: all + strategy: + matrix: + rpi_arm: + poolName: 'Default' + vmImage: + agentName: 'iio-osc_rpi' + OS_TYPE: 'arm32v7/debian_docker' + OS_VERSION: 'buster' + artifactName: 'Linux-RPI-ARM' + pool: + name: $(poolName) + vmImage: $(vmImage) + demands: + - agent.name -equals $(agentName) + steps: + - checkout: self + fetchDepth: 1 + clean: true + - task: DownloadPipelineArtifact@2 + displayName: 'Get libiio artifacts' + inputs: + source: 'specific' + project: '$(System.TeamProjectId)' + pipeline: $(libiioPipelineId) + artifact: 'Ubuntu-arm32v7' + runVersion: 'latestFromBranch' + runBranch: 'refs/heads/master' + path: '$(Agent.BuildDirectory)/s/build/' + - task: DownloadPipelineArtifact@2 + displayName: 'Get libad9361-iio artifacts' + inputs: + source: 'specific' + project: '$(System.TeamProjectId)' + pipeline: $(libad9361iioPipelineId) + artifact: 'Ubuntu-arm32v7' + runVersion: 'latestFromBranch' + runBranch: 'refs/heads/master' + path: '$(Agent.BuildDirectory)/s/build/' + - task: DownloadPipelineArtifact@2 + displayName: 'Get libad9166-iio artifacts' + inputs: + source: 'specific' + project: '$(System.TeamProjectId)' + pipeline: $(libad9166iioPipelineId) + artifact: 'Ubuntu-arm32v7' + runVersion: 'latestFromBranch' + runBranch: 'refs/heads/master' + path: '$(Agent.BuildDirectory)/s/build/' + - script: | + set -x + ls -al $(Agent.BuildDirectory)/s/build + sudo dpkg -i $(Agent.BuildDirectory)/s/build/*.deb + displayName: "Install Dependencies" + - script: ./CI/travis/make_linux + displayName: "Build" + - job: macOSBuilds strategy: matrix: