forked from conda-forge/zeromq-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines-osx.yml
More file actions
executable file
·83 lines (79 loc) · 2.79 KB
/
azure-pipelines-osx.yml
File metadata and controls
executable file
·83 lines (79 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.
# -*- mode: yaml -*-
jobs:
- job: osx
pool:
vmImage: $(VMIMAGE)
strategy:
matrix:
osx_64_draftsOFF:
CONFIG: osx_64_draftsOFF
UPLOAD_PACKAGES: 'True'
SHORT_CONFIG: osx_64_draftsOFF
VMIMAGE: macOS-15
osx_64_draftsON:
CONFIG: osx_64_draftsON
UPLOAD_PACKAGES: 'True'
SHORT_CONFIG: osx_64_draftsON
VMIMAGE: macOS-15
osx_arm64_draftsOFF:
CONFIG: osx_arm64_draftsOFF
UPLOAD_PACKAGES: 'True'
SHORT_CONFIG: osx_arm64_draftsOFF
VMIMAGE: macOS-15
osx_arm64_draftsON:
CONFIG: osx_arm64_draftsON
UPLOAD_PACKAGES: 'True'
SHORT_CONFIG: osx_arm64_draftsON
VMIMAGE: macOS-15
timeoutInMinutes: 360
variables: {}
steps:
# TODO: Fast finish on azure pipelines?
- script: |
export CI=azure
export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt)
export remote_url=$(Build.Repository.Uri)
export sha=$(Build.SourceVersion)
export OSX_FORCE_SDK_DOWNLOAD="1"
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then
export IS_PR_BUILD="True"
else
export IS_PR_BUILD="False"
fi
./.scripts/run_osx_build.sh
displayName: Run OSX build
env:
BINSTAR_TOKEN: $(BINSTAR_TOKEN)
FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN)
STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN)
- script: |
export CI=azure
export CI_RUN_ID=$(build.BuildNumber).$(system.JobAttempt)
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
export CONDA_BLD_DIR=/Users/runner/miniforge3/conda-bld
export ARTIFACT_STAGING_DIR="$(Build.ArtifactStagingDirectory)"
# Archive everything in CONDA_BLD_DIR except environments
export BLD_ARTIFACT_PREFIX=conda_artifacts
if [[ "$AGENT_JOBSTATUS" == "Failed" ]]; then
# Archive the CONDA_BLD_DIR environments only when the job fails
export ENV_ARTIFACT_PREFIX=conda_envs
fi
./.scripts/create_conda_build_artifacts.sh
displayName: Prepare conda build artifacts
condition: succeededOrFailed()
- task: PublishPipelineArtifact@1
displayName: Store conda build artifacts
condition: not(eq(variables.BLD_ARTIFACT_PATH, ''))
inputs:
targetPath: $(BLD_ARTIFACT_PATH)
artifactName: $(BLD_ARTIFACT_NAME)
- task: PublishPipelineArtifact@1
displayName: Store conda build environment artifacts
condition: not(eq(variables.ENV_ARTIFACT_PATH, ''))
inputs:
targetPath: $(ENV_ARTIFACT_PATH)
artifactName: $(ENV_ARTIFACT_NAME)