Skip to content

Commit

Permalink
CI:add bullseye 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 8abd43e commit 09ca30d
Showing 1 changed file with 70 additions and 1 deletion.
71 changes: 70 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ stages:
image: tfcollins/libiio_ubuntu_18_04-ci-arm-ppc:latest
arch: aarch64
artifactName: 'Ubuntu-arm64v8'
bullseye:
image: tfcollins/libiio_debian_bullseye-ci:latest
arch: x86_64
artifactName: 'Linux-Debian-11'
steps:
- checkout: self
fetchDepth: 1
Expand Down Expand Up @@ -171,7 +175,72 @@ stages:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: '$(artifactName)'

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

- job: DebianBuilds
pool:
vmImage: "ubuntu-latest"
strategy:
matrix:
bullseye:
image: 'tfcollins/libiio_debian_bullseye-ci:latest'
arch: x86_64
artifactName: 'Linux-Debian-11'
container: $[ variables['image'] ]
steps:
- checkout: self
fetchDepth: 1
clean: true
persistCredentials: true
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libiioPipelineId)
artifact: '$(artifactName)'
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: '$(artifactName)'
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: '$(artifactName)'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/download/'
displayName: 'Get libad9166-iio artifacts'
- script: |
set -e
sudo apt-get update
sudo apt-get install -y libc6-dev-armhf-cross
sudo apt-get install -y g++-aarch64-linux-gnu
sudo apt-get install qemu binfmt-support qemu-user-static
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
displayName: "Setup"
- script: |
set -e
sudo docker run -m=4g --name iio-oscilloscope --platform "linux/$(arch)" -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_osc_debian.sh && ./CI/azure/build_osc_debian.sh install_apt_pkgs && ./CI/azure/build_osc_debian.sh install_gtkdatabox && ./CI/azure/build_osc_debian.sh install_adi_debs && ./CI/azure/build_osc_debian.sh build_osc"
sudo docker ps -a
displayName: "Install dependencies + build"
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: '$(artifactName)'

########################################
# !!! Uncomment macOSBuilds when will be added fixes on development side !!!

#- job: macOSBuilds
Expand Down

0 comments on commit 09ca30d

Please sign in to comment.