Skip to content

Commit

Permalink
TEMP: disable CI, only test macOS changes
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 Dec 13, 2023
1 parent 61b7247 commit 3f63b00
Showing 1 changed file with 127 additions and 127 deletions.
254 changes: 127 additions & 127 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,53 +33,53 @@ parameters:
- 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: 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:
Expand Down Expand Up @@ -181,88 +181,88 @@ jobs:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: $(TWINE_PASSWORD)
- job: WindowsBuilds
workspace:
clean: all
strategy:
matrix:
VS_2022:
poolName: 'Azure Pipelines'
vmImage: 'windows-2022'
COMPILER: 'Visual Studio 17 2022'
ARCH: 'x64'
PLATFORM: 'win64'
artifactName: 'Windows-VS-2022-x64'
VS_2019:
poolName: 'Azure Pipelines'
vmImage: 'windows-2019'
COMPILER: 'Visual Studio 16 2019'
ARCH: 'x64'
PLATFORM: 'win64'
artifactName: 'Windows-VS-2019-x64'
pool:
vmImage: $[ variables['vmImage'] ]
steps:
- checkout: self
fetchDepth: 1
clean: true
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- task: PowerShell@2
displayName: 'Install Dependencies'
inputs:
targetType: filePath
filePath: ./CI/windows/install_deps.ps1
- task: PowerShell@2
displayName: "Build libm2k"
inputs:
targetType: 'filePath'
filePath: ./CI/windows/make_windows.ps1
- ${{ each pyVersion in parameters.pythonVersions }}:
- task: UsePythonVersion@0
displayName: Use Python ${{ pyVersion }}
inputs:
versionSpec: '${{ pyVersion }}'
- powershell: |
$SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY
$OUTSIDE_BUILD = $SRC_DIR.Parent.FullName
# - job: WindowsBuilds
# workspace:
# clean: all
# strategy:
# matrix:
# VS_2022:
# poolName: 'Azure Pipelines'
# vmImage: 'windows-2022'
# COMPILER: 'Visual Studio 17 2022'
# ARCH: 'x64'
# PLATFORM: 'win64'
# artifactName: 'Windows-VS-2022-x64'
# VS_2019:
# poolName: 'Azure Pipelines'
# vmImage: 'windows-2019'
# COMPILER: 'Visual Studio 16 2019'
# ARCH: 'x64'
# PLATFORM: 'win64'
# artifactName: 'Windows-VS-2019-x64'
# pool:
# vmImage: $[ variables['vmImage'] ]
# steps:
# - checkout: self
# fetchDepth: 1
# clean: true
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.11'
# - task: PowerShell@2
# displayName: 'Install Dependencies'
# inputs:
# targetType: filePath
# filePath: ./CI/windows/install_deps.ps1
# - task: PowerShell@2
# displayName: "Build libm2k"
# inputs:
# targetType: 'filePath'
# filePath: ./CI/windows/make_windows.ps1
# - ${{ each pyVersion in parameters.pythonVersions }}:
# - task: UsePythonVersion@0
# displayName: Use Python ${{ pyVersion }}
# inputs:
# versionSpec: '${{ pyVersion }}'
# - powershell: |
# $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY
# $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName

$BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$env:PLATFORM"
$TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$env:PLATFORM"
# $BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$env:PLATFORM"
# $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$env:PLATFORM"

Set-Location $TEMP_BUILD_DIR
python.exe -m pip install --user --upgrade pip setuptools wheel twine build virtualenv
$env:COMPILE_BINDINGS = $true
python.exe -m build
Remove-Item Env:COMPILE_BINDINGS
Copy-Item -Path "dist/libm2k*.whl" -Destination (Join-Path $BUILD_DIR "dist")
Set-Location $SRC_DIR
displayName: Wheel Python ${{ pyVersion }}
- task: PowerShell@2
displayName: 'Create libm2k-system-setup installer'
# condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.JobName'], 'VS_2022'))
condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
inputs:
targetType: 'filePath'
filePath: ./CI/windows/create_installer.ps1
- task: PublishPipelineArtifact@1
# condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.JobName'], 'VS_2022'))
condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/installer'
artifactName: 'Libm2k-System-Setup-Exe'
- task: PowerShell@2
displayName: "Create ZIPs"
inputs:
targetType: 'filePath'
filePath: ./CI/windows/create_zips.ps1
- task: PublishPipelineArtifact@1
# condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: succeeded()
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/libm2k-$(PLATFORM)'
artifactName: '$(artifactName)'
# Set-Location $TEMP_BUILD_DIR
# python.exe -m pip install --user --upgrade pip setuptools wheel twine build virtualenv
# $env:COMPILE_BINDINGS = $true
# python.exe -m build
# Remove-Item Env:COMPILE_BINDINGS
# Copy-Item -Path "dist/libm2k*.whl" -Destination (Join-Path $BUILD_DIR "dist")
# Set-Location $SRC_DIR
# displayName: Wheel Python ${{ pyVersion }}
# - task: PowerShell@2
# displayName: 'Create libm2k-system-setup installer'
# # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.JobName'], 'VS_2022'))
# condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
# inputs:
# targetType: 'filePath'
# filePath: ./CI/windows/create_installer.ps1
# - task: PublishPipelineArtifact@1
# # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.JobName'], 'VS_2022'))
# condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
# inputs:
# targetPath: '$(Build.ArtifactStagingDirectory)/installer'
# artifactName: 'Libm2k-System-Setup-Exe'
# - task: PowerShell@2
# displayName: "Create ZIPs"
# inputs:
# targetType: 'filePath'
# filePath: ./CI/windows/create_zips.ps1
# - task: PublishPipelineArtifact@1
# # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
# condition: succeeded()
# inputs:
# targetPath: '$(Build.ArtifactStagingDirectory)/libm2k-$(PLATFORM)'
# artifactName: '$(artifactName)'



Expand Down

0 comments on commit 3f63b00

Please sign in to comment.