From da1de0f9fe75f8351c51412cef44df8a8f57837f Mon Sep 17 00:00:00 2001 From: Brian Thorne Date: Fri, 6 Sep 2019 15:34:33 +1000 Subject: [PATCH] Azure Pipelines: Publish wheel for OSX (#235) A wheel built on OSX with clang is published in Azure along with a wheel built on ubuntu linux. --- .azurePipeline/python_init_package_install_steps.yml | 8 ++++++++ azurePipeline.yml | 7 +------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.azurePipeline/python_init_package_install_steps.yml b/.azurePipeline/python_init_package_install_steps.yml index 9b2c0fba..973769ac 100644 --- a/.azurePipeline/python_init_package_install_steps.yml +++ b/.azurePipeline/python_init_package_install_steps.yml @@ -56,3 +56,11 @@ steps: python -m codecov --token $(CODECOV_TOKEN) --file coverage.xml -F $opSysFlag,$pyVFlag,$compFlag displayName: 'Send coverage to codecov' condition: succeededOrFailed() + +# Note PipelineArtifacts replace BuildArtifacts +- task: PublishPipelineArtifact@1 + condition: and(eq(variables['compiler'], 'clang'), eq(variables['pythonVersion'], '3.7')) + displayName: 'Publish pipeline artifacts in Azure' + inputs: + targetPath: 'dist' + artifact: 'Build Artifacts ${{ parameters.operatingSystem }} for Python ${{ parameters.pythonVersion }}' diff --git a/azurePipeline.yml b/azurePipeline.yml index db690dad..f615c7da 100644 --- a/azurePipeline.yml +++ b/azurePipeline.yml @@ -43,12 +43,7 @@ stages: compiler: $(compiler) pythonVersion: $(pythonVersion) operatingSystem: 'ubuntu-16.04' - - task: PublishPipelineArtifact@0 - condition: and(eq(variables['compiler'], 'gcc'), eq(variables['pythonVersion'], '3.7')) - displayName: 'Publish artifacts in Azure' - inputs: - artifactName: Artifacts - targetPath: 'dist/' + - job: displayName: OSX