From e68dcdf1ed5be99569ac3a08786c163cef8d57dc Mon Sep 17 00:00:00 2001 From: Adrian Stanea Date: Thu, 10 Oct 2024 15:39:18 +0300 Subject: [PATCH] DELETEME: disabled all CI jobs but the one for Windows Signed-off-by: Adrian Stanea --- azure-pipelines.yml | 286 ++++++++++++++++++++++---------------------- 1 file changed, 143 insertions(+), 143 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8f15cb18..762ef188 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,150 +31,150 @@ parameters: - 3.9 - 3.8 - 3.7 -# TODO: Fix conditions to export artifacts after validating current pipelines -jobs: -- job: LinuxBuilds - strategy: - matrix: - ubuntu_20_04: - imageName: 'ubuntu-20.04' - OS_TYPE: 'ubuntu_docker' - OS_VERSION: focal - artifactName: 'Linux-Ubuntu-20.04' - ubuntu_22_04: - imageName: 'ubuntu-22.04' - OS_TYPE: 'ubuntu_docker' - OS_VERSION: jammy - artifactName: 'Linux-Ubuntu-22.04' - deploy_doxygen: - imageName: 'ubuntu-20.04' - OS_TYPE: 'doxygen' - OS_VERSION: focal - artifactName: 'Linux-Ubuntu-20.04' - pool: - vmImage: $(imageName) - steps: - - checkout: self - fetchDepth: 1 - clean: true - persistCredentials: true - - script: ./CI/ubuntu/install_deps - displayName: "Install Dependencies" - - task: CopyFiles@2 - condition: ne(variables['System.JobName'], 'deploy_doxygen') - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/libiio/build/' - contents: '$(Agent.BuildDirectory)/s/libiio/build/?(*.deb)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - script: ./CI/ubuntu/make_linux - displayName: "Build" - - task: CopyFiles@2 - condition: ne(variables['System.JobName'], 'deploy_doxygen') - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/build/' - contents: '$(Agent.BuildDirectory)/s/build/?(libm2k*.deb|libm2k*.rpm)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - task: PublishPipelineArtifact@1 - # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.JobName'], 'deploy_doxygen')) - condition: and(succeeded(), ne(variables['System.JobName'], 'deploy_doxygen')) - inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' - artifactName: '$(artifactName)' -- job: macOSBuilds - workspace: - clean: all - strategy: - matrix: - macOS_12: - poolName: 'Azure Pipelines' - vmImage: 'macOS-12' - agentName: 'Azure Pipelines 3' - artifactName: 'macOS-12' - macOS_13_x64: - poolName: 'Azure Pipelines' - vmImage: 'macOS-13' - agentName: 'Azure Pipelines 2' - artifactName: 'macOS-13-x64' - # TODO: discuss with DevOps team how to setup ARM agent - # macOS_13_arm64: - # poolName: 'Default' - # vmImage: - # agentName: 'macOS_arm64' - # artifactName: 'macOS-13-arm64' - pool: - name: $(poolName) - vmImage: $(vmImage) - demands: - - agent.name -equals $(agentName) - steps: - - checkout: self - fetchDepth: 1 - clean: true - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.11' - addToPath: true - - script: ./CI/macOS/install_deps - displayName: "Install Dependencies" - condition: ne(variables['agentName'],'macOS_arm64') - - task: CopyFiles@2 - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/libiio/build/' - contents: '$(Agent.BuildDirectory)/s/libiio/build/?(*.pkg)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - task: CopyFiles@2 - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/libiio/build_tar/' - contents: '$(Agent.BuildDirectory)/s/libiio/build_tar/?(*.tar.gz)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - script: ./CI/macOS/make_macOS - displayName: "Build" - - ${{ each pyVersion in parameters.pythonVersions }}: - - task: UsePythonVersion@0 - displayName: Use Python ${{ pyVersion }} - inputs: - versionSpec: '${{ pyVersion }}' - - script: | - python3 --version - python3 -m pip install wheel twine build virtualenv - cd '$(Agent.BuildDirectory)/s/build/' - mkdir -p wheelhouse - export COMPILE_BINDINGS=True - python3 -m build - export COMPILE_BINDINGS= - cp dist/*.whl wheelhouse - displayName: Wheel Python ${{ pyVersion }} - - task: CopyFiles@2 - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/build/' - contents: '$(Agent.BuildDirectory)/s/build/?(*.pkg)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - task: CopyFiles@2 - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/build/' - contents: '$(Agent.BuildDirectory)/s/build/wheelhouse/?(*.whl)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - task: CopyFiles@2 - inputs: - sourceFolder: '$(Agent.BuildDirectory)/s/build_tar/' - contents: '$(Agent.BuildDirectory)/s/build_tar/?(*.tar.gz)' - targetFolder: '$(Build.ArtifactStagingDirectory)' - - task: PublishPipelineArtifact@1 - # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) - condition: succeeded() - inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' - artifactName: '$(artifactName)' - - script: | - python -m pip install --upgrade pip twine - cd '$(Agent.BuildDirectory)/s/build/wheelhouse/' - python -m twine upload --repository "testpypi" *.whl - condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) - displayName: "Upload to PyPI" - env: - TWINE_USERNAME: '__token__' - TWINE_PASSWORD: $(TWINE_PASSWORD) +# jobs: +# - job: LinuxBuilds +# strategy: +# matrix: +# ubuntu_20_04: +# imageName: 'ubuntu-20.04' +# OS_TYPE: 'ubuntu_docker' +# OS_VERSION: focal +# artifactName: 'Linux-Ubuntu-20.04' +# ubuntu_22_04: +# imageName: 'ubuntu-22.04' +# OS_TYPE: 'ubuntu_docker' +# OS_VERSION: jammy +# artifactName: 'Linux-Ubuntu-22.04' +# deploy_doxygen: +# imageName: 'ubuntu-20.04' +# OS_TYPE: 'doxygen' +# OS_VERSION: focal +# artifactName: 'Linux-Ubuntu-20.04' +# pool: +# vmImage: $(imageName) +# steps: +# - checkout: self +# fetchDepth: 1 +# clean: true +# persistCredentials: true +# - script: ./CI/ubuntu/install_deps +# displayName: "Install Dependencies" +# - task: CopyFiles@2 +# condition: ne(variables['System.JobName'], 'deploy_doxygen') +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/libiio/build/' +# contents: '$(Agent.BuildDirectory)/s/libiio/build/?(*.deb)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - script: ./CI/ubuntu/make_linux +# displayName: "Build" +# - task: CopyFiles@2 +# condition: ne(variables['System.JobName'], 'deploy_doxygen') +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/build/' +# contents: '$(Agent.BuildDirectory)/s/build/?(libm2k*.deb|libm2k*.rpm)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - task: PublishPipelineArtifact@1 +# # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.JobName'], 'deploy_doxygen')) +# condition: and(succeeded(), ne(variables['System.JobName'], 'deploy_doxygen')) +# inputs: +# targetPath: '$(Build.ArtifactStagingDirectory)' +# artifactName: '$(artifactName)' + +# - job: macOSBuilds +# workspace: +# clean: all +# strategy: +# matrix: +# macOS_12: +# poolName: 'Azure Pipelines' +# vmImage: 'macOS-12' +# agentName: 'Azure Pipelines 3' +# artifactName: 'macOS-12' +# macOS_13_x64: +# poolName: 'Azure Pipelines' +# vmImage: 'macOS-13' +# agentName: 'Azure Pipelines 2' +# artifactName: 'macOS-13-x64' +# # TODO: discuss with DevOps team how to setup ARM agent +# # macOS_13_arm64: +# # poolName: 'Default' +# # vmImage: +# # agentName: 'macOS_arm64' +# # artifactName: 'macOS-13-arm64' +# pool: +# name: $(poolName) +# vmImage: $(vmImage) +# demands: +# - agent.name -equals $(agentName) +# steps: +# - checkout: self +# fetchDepth: 1 +# clean: true +# - task: UsePythonVersion@0 +# inputs: +# versionSpec: '3.11' +# addToPath: true +# - script: ./CI/macOS/install_deps +# displayName: "Install Dependencies" +# condition: ne(variables['agentName'],'macOS_arm64') +# - task: CopyFiles@2 +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/libiio/build/' +# contents: '$(Agent.BuildDirectory)/s/libiio/build/?(*.pkg)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - task: CopyFiles@2 +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/libiio/build_tar/' +# contents: '$(Agent.BuildDirectory)/s/libiio/build_tar/?(*.tar.gz)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - script: ./CI/macOS/make_macOS +# displayName: "Build" +# - ${{ each pyVersion in parameters.pythonVersions }}: +# - task: UsePythonVersion@0 +# displayName: Use Python ${{ pyVersion }} +# inputs: +# versionSpec: '${{ pyVersion }}' +# - script: | +# python3 --version +# python3 -m pip install wheel twine build virtualenv +# cd '$(Agent.BuildDirectory)/s/build/' +# mkdir -p wheelhouse +# export COMPILE_BINDINGS=True +# python3 -m build +# export COMPILE_BINDINGS= +# cp dist/*.whl wheelhouse +# displayName: Wheel Python ${{ pyVersion }} +# - task: CopyFiles@2 +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/build/' +# contents: '$(Agent.BuildDirectory)/s/build/?(*.pkg)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - task: CopyFiles@2 +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/build/' +# contents: '$(Agent.BuildDirectory)/s/build/wheelhouse/?(*.whl)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - task: CopyFiles@2 +# inputs: +# sourceFolder: '$(Agent.BuildDirectory)/s/build_tar/' +# contents: '$(Agent.BuildDirectory)/s/build_tar/?(*.tar.gz)' +# targetFolder: '$(Build.ArtifactStagingDirectory)' +# - task: PublishPipelineArtifact@1 +# # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) +# condition: succeeded() +# inputs: +# targetPath: '$(Build.ArtifactStagingDirectory)' +# artifactName: '$(artifactName)' +# - script: | +# python -m pip install --upgrade pip twine +# cd '$(Agent.BuildDirectory)/s/build/wheelhouse/' +# python -m twine upload --repository "testpypi" *.whl +# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) +# displayName: "Upload to PyPI" +# env: +# TWINE_USERNAME: '__token__' +# TWINE_PASSWORD: $(TWINE_PASSWORD) - job: WindowsBuilds workspace: