Skip to content

Commit

Permalink
CI:add rpi4 build
Browse files Browse the repository at this point in the history
Signed-off-by: Raluca Groza <[email protected]>
  • Loading branch information
ccraluca committed Aug 21, 2023
1 parent f51c7a1 commit 5ed5aa1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CI/azure/build_osc_arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -xe

install_apt_pkgs() {
set -x
export APT_PKGS="libglib2.0-dev \
libgtk-3-dev \
libmatio-dev \
Expand All @@ -28,6 +29,7 @@ install_apt_pkgs() {
}

install_gtkdatabox() {
set -x
wget https://downloads.sourceforge.net/project/gtkdatabox/gtkdatabox-1/gtkdatabox-1.0.0.tar.gz --no-check-certificate
tar xvf gtkdatabox-1.0.0.tar.gz
cd gtkdatabox-1.0.0
Expand All @@ -36,10 +38,12 @@ install_gtkdatabox() {
}

install_adi_debs() {
se -x
dpkg -i ./download/*.deb
}

build_osc() {
set -x
mkdir build && cd build
cmake ../
make -j9
Expand Down
58 changes: 58 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,64 @@ stages:

#######################################

- job: RPIBuilds
pool:
name: Default
demands:
- agent.name -equals iio-osc_rpi
workspace:
clean: all
steps:
- checkout: self
fetchDepth: 1
clean: true
persistCredentials: true
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libiioPipelineId)
artifact: 'Linux-Debian-11'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/download/'
displayName: 'Get libiio artifacts'
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libad9361iioPipelineId)
artifact: 'Linux-Debian-11'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/download/'
displayName: 'Get libad9361-iio artifacts'
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libad9166iioPipelineId)
artifact: 'Linux-Debian-11'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/download/'
displayName: 'Get libad9166-iio artifacts'
- script: |
set -x
./CI/azure/build_osc_arm.sh install_apt_pkgs
./CI/azure/build_osc_arm.sh install_adi_debs
./CI/azure/build_osc_arm.sh install_gtkdatabox
displayName: 'Install Dependencies'
- script: |
./CI/azure/builds_osc_arm.sh build_osc
displayName: 'Build'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'RPI4-Bullseye'

#######################################

- job: ARMBuilds
# Host Box
pool:
Expand Down

0 comments on commit 5ed5aa1

Please sign in to comment.