Skip to content

Commit

Permalink
DELETEME: disabled all CI jobs but the one for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Stanea <Adrian.Stanea@analog.com>
  • Loading branch information
Adrian-Stanea committed Oct 10, 2024
1 parent 49de405 commit e68dcdf
Showing 1 changed file with 143 additions and 143 deletions.
286 changes: 143 additions & 143 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e68dcdf

Please sign in to comment.