Skip to content

Commit

Permalink
CI: add artifact_manifest file
Browse files Browse the repository at this point in the history
- the purpose of this file is to have on GitHub repository a list
  with all deployed artifacts
- this list will be checked in Azure Pipelines at each master push

Signed-off-by: Raluca Chis <raluca.chis@analog.com>
  • Loading branch information
Raluca Chis authored and pcercuei committed Feb 22, 2022
1 parent abe0996 commit 5b9ef36
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ if (WIN32)
string(REPLACE "." "," LIBIIO_FILEVERSION ${VERSION})
endif()

configure_file(artifact_manifest.txt.cmakein ${CMAKE_CURRENT_BINARY_DIR}/artifact_manifest.txt @ONLY)
configure_file(libiio.iss.cmakein ${CMAKE_CURRENT_BINARY_DIR}/libiio.iss @ONLY)

set(LIBIIO_PC ${CMAKE_CURRENT_BINARY_DIR}/libiio.pc)
Expand Down
67 changes: 67 additions & 0 deletions artifact_manifest.txt.cmakein
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Libiio-Setup-Exe/libiio-setup.exe

Linux-Fedora-34/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Fedora-34.deb
Linux-Fedora-34/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Fedora-34.rpm
Linux-Fedora-34/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Fedora-34.tar.gz

Linux-Ubuntu-18.04/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Ubuntu-18.04.deb
Linux-Ubuntu-18.04/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Ubuntu-18.04.tar.gz

Linux-Ubuntu-20.04/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Ubuntu-20.04.deb
Linux-Ubuntu-20.04/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Linux-Ubuntu-20.04.tar.gz

macOS-10.15/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-macOS-10.15.tar.gz
macOS-10.15/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@.pkg

macOS-11/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-macOS-11.tar.gz
macOS-11/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@.pkg

Ubuntu-arm32v7/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-arm32v7.deb
Ubuntu-arm32v7/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-arm32v7.tar.gz

Ubuntu-arm64v8/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-arm64v8.deb
Ubuntu-arm64v8/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-arm64v8.tar.gz

Ubuntu-ppc64le/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-ppc64le.deb
Ubuntu-ppc64le/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-ppc64le.tar.gz

Ubuntu-x390x/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-x390x.deb
Ubuntu-x390x/libiio-@VERSION@.g@LIBIIO_VERSION_GIT@-Ubuntu-x390x.tar.gz

Windows-VS-2019-x64/iio.h
Windows-VS-2019-x64/iio_attr.exe
Windows-VS-2019-x64/iio_genxml.exe
Windows-VS-2019-x64/iio_info.exe
Windows-VS-2019-x64/iio_readdev.exe
Windows-VS-2019-x64/iio_reg.exe
Windows-VS-2019-x64/iio_writedev.exe
Windows-VS-2019-x64/libiio-py39-amd64.tar.gz
Windows-VS-2019-x64/libiio-sharp.dll
Windows-VS-2019-x64/libiio.dll
Windows-VS-2019-x64/libiio.exp
Windows-VS-2019-x64/libiio.iss
Windows-VS-2019-x64/libiio.lib
Windows-VS-2019-x64/libserialport-0.dll
Windows-VS-2019-x64/libusb-1.0.dll
Windows-VS-2019-x64/libxml2.dll
Windows-VS-2019-x64/msvcp140.dll
Windows-VS-2019-x64/vcruntime140.dll

Windows-VS-2022-x64/iio.h
Windows-VS-2022-x64/iio_attr.exe
Windows-VS-2022-x64/iio_genxml.exe
Windows-VS-2022-x64/iio_info.exe
Windows-VS-2022-x64/iio_readdev.exe
Windows-VS-2022-x64/iio_reg.exe
Windows-VS-2022-x64/iio_writedev.exe
Windows-VS-2022-x64/libiio-py39-amd64.tar.gz
Windows-VS-2022-x64/libiio-sharp.dll
Windows-VS-2022-x64/libiio.dll
Windows-VS-2022-x64/libiio.exp
Windows-VS-2022-x64/libiio.iss
Windows-VS-2022-x64/libiio.lib
Windows-VS-2022-x64/libserialport-0.dll
Windows-VS-2022-x64/libusb-1.0.dll
Windows-VS-2022-x64/libxml2.dll
Windows-VS-2022-x64/msvcp140.dll
Windows-VS-2022-x64/vcruntime140.dll
38 changes: 37 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,44 @@ stages:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'Libiio-Setup-Exe'

#############################################
- job: CheckArtifacts
dependsOn: GenerateSetupExe
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')))
# Host Box
pool:
vmImage: 'ubuntu-latest'
# Docker Images
strategy:
matrix:
ubuntu_20_04:
image: 'tfcollins/libiio_ubuntu_20_04-ci:latest'
artifactName: 'Check artifacts'
container: $[ variables['image'] ]
steps:
- script: |
mkdir build && cd build
cmake ..
mkdir artifacts
displayName: 'Build artifact manifest'
- task: DownloadPipelineArtifact@2
inputs:
path: '$(Agent.BuildDirectory)/s/build/artifacts'
- script: ./CI/travis/prepare_assets.sh check
displayName: 'Check files'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/build/'
contents: 'artifact_manifest.txt'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'Artifact manifest'

#############################################
- job: PushToSWDownloads
dependsOn: GenerateSetupExe
dependsOn: CheckArtifacts
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
pool:
vmImage: 'ubuntu-latest'
Expand All @@ -315,6 +350,7 @@ stages:

##############################################
- job: PushToGithubRelease
dependsOn: CheckArtifacts
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
pool:
vmImage: 'ubuntu-latest'
Expand Down

0 comments on commit 5b9ef36

Please sign in to comment.